Sign in with
Sign up | Sign in
Your question

Batch file under Windows XP ???

Last response: in Windows XP
Share
Anonymous
June 30, 2005 2:02:26 PM

Archived from groups: microsoft.public.windowsxp.newusers (More info?)

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

-----------------------------------------------------------------

More about : batch file windows

Anonymous
June 30, 2005 7:20:05 PM

Archived from groups: microsoft.public.windowsxp.newusers (More info?)

Here is a link to a utility you can use to find out which process has a
particular file open:
http://www.sysinternals.com/Utilities/ProcessExplorer.h...

Or you could start the machine in safe mode (press F8 during bootup).



"Don J" wrote:

> 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
>
> -----------------------------------------------------------------
>
>
>
>
Anonymous
June 30, 2005 11:42:39 PM

Archived from groups: microsoft.public.windowsxp.newusers (More info?)

See my response to your earlier post.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP
http://mvp.support.microsoft.com/
Associate Expert - WindowsXP Expert Zone
www.microsoft.com/windowsxp/expertzone
Windows help - www.rickrogers.org

"Don J" <dej8800@comcast.net> wrote in message
news:br-dnaGGXrkTZl7fRVn-vg@comcast.com...
>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
>
> -----------------------------------------------------------------
>
>
>
Related resources
Anonymous
July 1, 2005 3:26:19 AM

Archived from groups: microsoft.public.windowsxp.newusers (More info?)

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

-------------------------------------------------------------------



"The Firestarter" <TheFirestarter@discussions.microsoft.com> wrote in
message news:E640B2B4-B48D-4F81-8BFE-618BF6E5D7C7@microsoft.com...
>
> Here is a link to a utility you can use to find out which process has a
> particular file open:
> http://www.sysinternals.com/Utilities/ProcessExplorer.h...
>
> Or you could start the machine in safe mode (press F8 during bootup).
>
>
>
> "Don J" wrote:
>
>> 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
>>
>> -----------------------------------------------------------------
>>
>>
>>
>>
July 1, 2005 3:10:34 PM

Archived from groups: microsoft.public.windowsxp.newusers (More info?)

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/
--

"Don J" <dej8800@comcast.net> wrote in message
news:SZ-dnch3FqieJVnfRVn-2A@comcast.com...
>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
>
> -------------------------------------------------------------------
!