File in Use by another user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madankarmukta
    Contributor
    • Apr 2008
    • 308

    File in Use by another user

    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!
  • madankarmukta
    Contributor
    • Apr 2008
    • 308

    #2
    Hi All,

    Do anybody have any Idea how can I solve my problem ?

    I gave it a whirl but can't came across a solution.

    Thanks!
    Last edited by madankarmukta; Dec 19 '09, 02:41 PM. Reason: For reply to be more explainatory

    Comment

    Working...