Error when launching batch file from two CMD.EXE prompts

  • 7007940
  • 17-Feb-2011
  • 26-Apr-2012

Environment

Novell Client 2 SP1 for Windows Vista
Novell Client 2 SP1 for Windows Server 2008
Novell Client 2 SP1 for Windows 7
Novell Client 2 SP1 for Windows Server 2008 R2

Situation

When running looping batch file from two different command prompts (CMD.EXE), the following error is returned:
 
The process cannot access the file because it is being used by another process.
 
 Steps to duplicate:
 
1. Create a two batch files, such as:
 
c:\Loop.bat:
   :Looper
   call v:\todo.bat
   @goto:Looper
 
v:\todo.bat
   <some commands>
 
2. Open two CMD.EXE prompts
3. In the first CMD window, run Loop.bat.

4. In the second CMD windows, run Loop.bat.
 
At this point you will see an error such as:
C:\>call v:\todo.bat
The process cannot access the file because it is being used by another process. 

Resolution

Fix is available in Novell Client 2 SP1 for Windows (IR9a) or later.