Hi,
I am getting the problem in the batch file as -
"The process cannot access the file because it is being used by another process"
My Batch File contains the copy command as -
COPY "\\SharedFolder \File1.txt" D:\LocalFolder\ File2.txt /y
There are two jobs J1 and J2 -
Job J1 is feeding the data to file File1.txt.Mean while job J2 ;nothing but the batch file ; gets triggerd and it error out the message saying
"The process cannot access the file because it is being used by another process"
During analysis I found that Since J2 is trying to access the File1.txt which is not yet completely feeded, I am getting this error.
Is there any solution over this ..?
Please Help.
Thanks!
I am getting the problem in the batch file as -
"The process cannot access the file because it is being used by another process"
My Batch File contains the copy command as -
COPY "\\SharedFolder \File1.txt" D:\LocalFolder\ File2.txt /y
There are two jobs J1 and J2 -
Job J1 is feeding the data to file File1.txt.Mean while job J2 ;nothing but the batch file ; gets triggerd and it error out the message saying
"The process cannot access the file because it is being used by another process"
During analysis I found that Since J2 is trying to access the File1.txt which is not yet completely feeded, I am getting this error.
Is there any solution over this ..?
Please Help.
Thanks!
Comment