Have worked out what the problem was, it was a mistake in the epo.bat file that was causing the problem. The command shell "\\eclipsefs\netlogon\epo.bat" calls the batch file fine and now the correct syntax is in the batch file it runs OK (I had an incorrect path name). Thanks for the help guys.