$outdir = "h:\dir"; chdir($outdir) #==1 system($proc_that_runs_batch);