batch file error

L

LuDean Marvin

I am writing a batch file to load up my IE6 cache (on WinXP sp2) into a
ramdrive at system bootup (the temporary internet files directory, cache,
favorites, and history have been set to use the ramdrive). Here are the
contents of the batch file:

@ECHO on
XCOPY /E/H/I/R/Y "D:\LuDean's Documents\My Settings\IE6RamCache\*.*"
Z:\Temp\
pause

While testing my batch file, the xcopy command copies a large number of
files, but fails to finish the job. It displays the following error right
after copying or attempting to copy "index.dat" in the "Content.IE5"
directory:

File creation error - The requested operation cannot be performed on a file
with a user-mapped section open.

Any idea's on what this error means and how to correct it?
 
T

Torgeir Bakken \(MVP\)

LuDean said:
I am writing a batch file to load up my IE6 cache (on WinXP sp2) into a
ramdrive at system bootup (the temporary internet files directory, cache,
favorites, and history have been set to use the ramdrive). Here are the
contents of the batch file:

@ECHO on
XCOPY /E/H/I/R/Y "D:\LuDean's Documents\My Settings\IE6RamCache\*.*"
Z:\Temp\
pause

While testing my batch file, the xcopy command copies a large number of
files, but fails to finish the job. It displays the following error right
after copying or attempting to copy "index.dat" in the "Content.IE5"
directory:

File creation error - The requested operation cannot be performed on a file
with a user-mapped section open.

Any idea's on what this error means and how to correct it?
Hi

The file index.dat is always open and locked, that is why xcopy fail on
this file.

Add /C to your xcopy command line.


From "xcopy /?":

/C Continues copying even if errors occur.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top