cag8f Posted December 21, 2010 Share Posted December 21, 2010 First of all, can someone confirm that psexec can only run .exe (as opposed to .au3, .xls, etc.) files remotely. I posted that question here and in the Sysinternals forum, but no one replied. Assuming the answer to the above is 'yes,' I need to compile a script (script1.au3) but pass it certain paramaters, e.g. an array full of names. But that array will change every time I compile the script. As a novice, the only way I can think to accomplish this is write a second script (script2.au3) which edits script1.au3 with the appropriate information, then compile it. I'm just wondering if this is the most efficient way to do this, or am I missing some helpful functions/tricks that would make this easier? Thanks in advance. Link to comment Share on other sites More sharing options...
cag8f Posted December 21, 2010 Author Share Posted December 21, 2010 Why don't you try to write the array to a text file or spreadsheet, and have the script-to-be-compiled point to those locations. That way you don't have to re-compile every time, you just need to change the spreadsheet. Link to comment Share on other sites More sharing options...
cag8f Posted December 21, 2010 Author Share Posted December 21, 2010 Good idea, I'll try that. Thanks! 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