Xcopy process does not die

  • Thread starter Thread starter Scott F
  • Start date Start date
S

Scott F

After using xcopy several times throughout the day, I open Task Manager
and find that there are several instances of the process still in
memory. The xcopy procedure has finished successfully, but the process
remains (for days if I allow it). The only way to get rid of them is
to kill them off manually.

Is there any way to have these processes terminate gracefully as they
are supposed to?

Scott
 
Presumably you invoke xcopy via a batch file. Please
post the relevant portion of your batch file here.
 
Scott F said:
Here are a couple examples.

cmd line:
xcopy l:\13.02.x\common\control32.dat

bat file:
xcopy xxxxxxx.exe ..\somefolder /d
xcopy xxxxxxxx.exe d:\xsomefolder\dde /d
xcopy xxxxxxxx.exe d:\xsomefolder\common /d
xcopy xxxxxxxx.hlp ..\somefolder /d
xcopy xxxxxxxx.hlp d:\xsomefolder\dde /d
xcopy xxxxxxxx.hlp d:\xsomefolder\common /d
set InstallDir=L:\xxxxx.x
xcopy xxxxxxxx.exe %InstallDir%\common /d
xcopy xxxxxxxx.hlp %InstallDir%\common /d

Scott

Did you ever track your batch file through its execution?
Remove the line "@echo off" from it? I suspect it appears
to hang because it asks you if it is OK to overwrite an
existing file. This can easily be removed by coding like
so:

@echo off
set copycmd=/y
xcopy . . . .

If my guess is incorrect then please state exactly how
far your batch file progresses before it stalls, and what
message(s) you see on the screen.

If it stalls on one particular xcopy command then it would
be interesting to know if either the source file or the target
file is currently locked. You can easily find this out by
renaming the file.
 
Back
Top