laphlaw Posted March 14, 2006 Share Posted March 14, 2006 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! Link to comment Share on other sites More sharing options...
FreeFry Posted March 14, 2006 Share Posted March 14, 2006 (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 March 14, 2006 by FreeFry Link to comment Share on other sites More sharing options...
CyberSlug Posted March 14, 2006 Share Posted March 14, 2006 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now