Heh… I just tried this, copying notepad.exe to c:\program files
ote pad
otep.exe:
ren c:\batch est1.txt test2.txt
“c:\program files
ote pad
otep.exe”
ren c:\batch est2.txt test1.txt
And sure enough, the batch file does pause until I close notepad. While notepad is open, the txt file is “test2.txt”. As soon as I close it the batch file renames it “test1.txt”.