Force a process physically execute on a different server

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
rambo1
Posts: 2
Joined: 24 Jan 2012 19:56

Force a process physically execute on a different server

#1 Post by rambo1 » 24 Jan 2012 20:06

Hi,
I have an unusual question. Hope someone have an answer to help me.

I am triggering a batch file residing on SERVER1.
Inside the batch file is the command that looks like this:

CMD /C \\SERVER2\DTS32Binn\DTExec.exe /sq Create_Data_File /ser SERVER2 /SET \Package.Connections["Configuration"].Properties["ServerName"];\""SERVER2\"" 1>>\\SERVER1\Folder1\Folder2\Folder2\XXXXXX_log.txt

(Run SERVER2/DTS32Binn/DTExec.exe process using additional data supplied in the batch file, create XXXXX_log.txt file and put it in the \Folder1\Folder2\Folder3 folder on SERVER1.

The process is executing O.K. and I am getting what I am expecting to get. The only problem I have is that the process is physically running on the SERVER1 (The server where the batch file is residing). I need this process to run physically on the SERVER2. I am not able to move the batch file to the SERVER2 and execute it from there because of my company’s internal reasons.
Is there any simple way, using a DOS command in the batch file, to force the process triggered on the SERVER1 to run physically on the SERVER2.

Any help will be greatly appreciated.

Thanks in advance,
Vlad

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Force a process physically execute on a different server

#2 Post by Squashman » 24 Jan 2012 20:36

The batch file needs to physically be executed on the server you want it to run. If you have admin access to the server you could use psexec to execute it on the correct server.

rambo1
Posts: 2
Joined: 24 Jan 2012 19:56

Re: Force a process physically execute on a different server

#3 Post by rambo1 » 27 Jan 2012 11:40

Thank You very much for your answer.

Post Reply