- Jun
- 762
- 16
I have a script whose intention is to copy file descriptions from the files in one directory to the same file in another directory. When I run it (for example, below I ran
That line in the code (87) is:
Many of the descriptions update without generating an error message. As it is, I included a
Does anyone have an idea about what could be going wrong (what I might be doing wrong)?
copydesc c*.btm dropbat:
), I get occasional errors like the following:
Code:
Updating description of cdtests.btm
TCC: (Sys) C:\commands\bat\copydesc.btm [87] The process cannot access the file because it is being used by another process.
"DESCRIPT.ION"
That line in the code (87) is:
Code:
describe %destfile /d"%desc"
Many of the descriptions update without generating an error message. As it is, I included a
DELAY 1
in the loop in case I was accessing the DESCRIPT.ION file too fast, but one second between accesses should be more than enough delay. If I repeat the very same command, I get errors on different files, so it is not something about the particular file or its description.Does anyone have an idea about what could be going wrong (what I might be doing wrong)?