Batch file under Windows XP ???

  • Thread starter Thread starter Don J
  • Start date Start date
D

Don J

I run a specific batch file at startup that attempts to copy a file to
replace one that is under control of a running program. I get the message
"The process cannot access the file because it is being used by another
process." How do I successfully write the file? I know that the way you
are supposed to do it is to close the program, make the transfer then
restart the program. But how do you do that when you don't know the program
and you don't know how it starts in the first place.

Don J

-----------------------------------------------------------------
 
See my response to your earlier post.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Associate Expert - WindowsXP Expert Zone

Windows help - www.rickrogers.org
 
I know which program has the file open. But what do you do about it, when
the program has been loaded at startup and you don't know how to stop it and
then restart it.

Don J
 
I suggest you stop the program from loading at startup and that you modify
your batch file to first do the copy and then launch the program. The
program may be launching from any of several places (startup group, registry
run keys, etc.) If you're not sure how to disable it's current launch on
startup use Startup Control Panel from http://www.mlin.net/
 
Back
Top