$outdir = "\\machine\share\dir"; chdir($outdir) #==1 system($proc_that_runs_batch);