lyledg Posted February 6, 2007 Share Posted February 6, 2007 Hi Guys I am wrting a custom installer for SMS, and have a simple question: Currently I have this in a batch file and want to run it via Autoit and psexec psexec.exe \\%1 -s \\<SERVER NAME>\SMS_<SITE CODE GOES HERE>\Client\i386\ccmsetup.exe /service SMSSITECODE=AUTO And what I have thus far is this: $Process = RunWait('psexec.exe -s \\' & $sSpecifyMachineName & " " & $sSpecifyServer & "\SMS_" & $sSpecifySite & " \Client\i386\ccmsetup.exe /service SMSSITECODE=AUTO", @WindowsDir, @SW_SHOW) It seems the command does not run, what am I missing?? Link to comment Share on other sites More sharing options...
/dev/null Posted February 6, 2007 Share Posted February 6, 2007 (edited) without knowing the content of your variables and the error message, how do you think we can help? EDIT: and the blank here is for sure not good. " \Client\i386\" Edited February 6, 2007 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
lyledg Posted February 6, 2007 Author Share Posted February 6, 2007 (edited) The variables are shown above in the first line of code...Anything can go in the Variables $Process = RunWait('psexec.exe -s \\' & <Any machine name> & " " & <Any Server Name > & "\SMS_" & < Any SMS Site Code> & " " < File location> "\ccmsetup.exe /service SMSSITECODE=AUTO", @ScriptDir, @SW_SHOW) Is it not a matter of my Inverted comma's being the issue? Edited February 6, 2007 by lyledg Link to comment Share on other sites More sharing options...
/dev/null Posted February 6, 2007 Share Posted February 6, 2007 The variables are shown above in the first line of code...Anything can go in the Variables $Process = RunWait('psexec.exe -s \\' & <Any machine name> & " " & <Any Server Name > & "\SMS_" & < Any SMS Site Code> & " " < File location> "\ccmsetup.exe /service SMSSITECODE=AUTO", @ScriptDir, @SW_SHOW) Is it not a matter of my Inverted comma's being the issue? well, as I said, WITHOUT knowing the content of the variables at the time you run it, how can we tell you what's going wrong? As you said, anything can go in the variables. So, how do we know, you put the right things into the variables? Instead of RunWait() run ClipPut() with the whole (and SAME) string and then post that string here! __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
lyledg Posted February 6, 2007 Author Share Posted February 6, 2007 Thanks Mate, I have solved the problem...After using Cliput I saw the error...I dod not specify a full unc path (forgot the \\) Cheers L 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