in reply to command prompt locks scripts for editing
Is it possible that you have a GUI in your script and that invisible windows are still around? Check the task manager.
HTH, --traveler