Sign in to follow this  
Followers 0
laphlaw

Launching processes remotely -- help!

3 posts in this topic

I am trying to launch a process remotely via PsTools. I want to create a GUI that will let the user select a remote computer, and decide whether or not he wants to loop the script or not. The problem I'm having is I don't know how to tell the remote computer whether or not the user selected to loop the process. I've considered making two separate executables - one that loops, one that doesn't. This doesn't seem very efficient, though. I've also considered sending a file remotely that will contain the user's selection. This seems like a more viable option, but I'm wondering... is there a more effective way to accomplish this?

Thanks!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Sending a file that contains the users selections seems to be the most resonable thing to do i think. Sounds simple enough to do. :)

Edited by FreeFry

Share this post


Link to post
Share on other sites

I'm not quite clear what you want to do...

Are you using Systernals' PsTools to launch a compiled AutoIt script? If so, could you just pass a command-line argument to the script?

Run("ScriptToRun.exe loop") ;called from GUI?

; ScriptToRun.exe
Global $LoopFlag = 0
If $CmdLine[0] > 1 And $CmdLine[1] = "loop" Then $LoopFlag = 1

Do
;code goes here...
Until $LoopFlag = 0

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0