I would like to know how I can have one of my scripts that resides on
serverA call another script that resides on serverB across the network and
pass it the variables that serverA’s script collected to serverB script to
complete the workflow process
The scripts can be Windows shell scripts .cmd or .bat or they can also be
VBScript
Thank you,
John
See the WSH documentation for the WshController/WshRemote objects.
You can also use 3rd party tools like psexec (free) from
www.sysinternals.com.
--
Michael Harris
Microsoft MVP Scripting
I will put something together with WSHcontroller and formulate a basic
working protocol of what I want and hopefully run with this.
I will also test psexec.
Do you know of hand any limitations that psexec has like the
wshcontroller\createscript that doesnt execute .exe or .bat?
Thank you,
Juan
None that I know of, but I'm not exactly a psexec power user, or even
WshRemote for that matter, except to experiment to understand how it
works...
Example for .bat from inside of VBS:
WshShell.Run "psexec cmd /c Start MyBatch.bat"
ESP
Making sure the batch run successfully with no error. How can we get return
code from the batch file? Any advise
Thanks