I've tried everything to make this run. I've used JAL scripts to run the batch when it was located on the master and on the remote server. I've scheduled it to run a batch file that was located locally and on the remote server. Nothing works. I know the batch file is good because it runs manually. I keep getting error messages there is an incorrect function. I've watched the tracing and it appears that the job is still trying to run locally, even though it is set up to run remotely. If I want to use a runandwait from my master server to run a batch file located at d:\folder1\subfolder1\file and have it start in the d:\folder1\subfolder1 directory, what should the script look like? I've tried everything. Half the time, it looks like it is trying to run on the master. others, the job starts remotely, but the run statement fails. : As if the file was ran manually from a DOS prompt on the remote system. : You either need to copy your files first or refer to them using UNC files : names (and tell the REMOTE where they are, not where to go. : To run a batch file on REMOTE which physically located on your machine you : would use \\MYMACHINE\C$\myfile.bat for the command line : If your machine has no shares the only option you have is to copy files to : the REMOTE then run them as local files.
|