redirect output files of a remote batch file

November 22, 2011 at 09:17:32
Specs: Windows XP
I have a batch file on machine A which generates 3 different text files using SQLCMD commands.
I remotely execute this batch file from machine B using another batch file which uses Psexec command ( for remote execution of batch file on machine A). I want to generate the 3 output files on machine B or some shared location which both machine have access to. How do we do that?
This is redirection of output from remote batch file I guess. Please let me know if anyone can solve this.

See More: redirect output files of a remote batch file

Report •

November 22, 2011 at 12:42:05
You could use a mapped drive. Map the drive within the script, copy the file(s), and then destroy the mapped drive. Or just copy the files to a UNC path.

Report •
Related Solutions

Ask Question