I've found out that it does work after all. I started a batch file that printed the current directory and ran this from the process and it did print the Working Directory!!! I've spent ages trying to get it working with Notepad and kept trying the File/Save As... to see if the folder was the Working Directory. I didn't realise that it was always the last one used. Pete