Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows - kill a copy command ?

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

I kill other commands using Win32::OLE process functions.
However a command line "copy" command will not appear in the process list...
Any idea how to identify it and kill it ?
I use it like :

system("start /B /MIN cmd /c copy /Y \"$TEMPDIR\\100MB\" \"\\\\$REMOTE_HOST\\$LARGEST\"");

thanks


Long live king Moshiach !
 
it's not a process, it's just a DOS command, no?

- Kevin, perl coder unexceptional!
 
Yeah - it's built-in to cmd, so the process you want to kill is the cmd process. No idea how you get to that though, as you're running that with the start command.

Mike

The options are: fast, cheap and right - pick any two.. [orientalbow] & [anakin]

Want great answers to your Tek-Tips questions? Have a look at faq219-2884
 
I suggest you give the cmd process a "title" when initiated the "start". This could help identify it in the process list in order to be able to kill the correct process.

Code:
C:\>help start
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top