I have created a vbscript that basically reads from one text file and writes to another. I have wrapped the script in a .bat file. When I run the .bat from the command prompt, everything works fine. However, if I run the .bat as a step within the SQL Server job scheduler it just hangs. The input file was created by an earlier step in the same job.I assume that this is an authority issue but I don't know how to resolve it as I am new to SQL Server and not sure of the runtime authority profiles for these jobs.