Storage Software
1822430 Members
2760 Online
109642 Solutions
New Discussion юеВ

sssu and vbscript

 
nicolas figaro
Occasional Contributor

sssu and vbscript

Hi,

I'd like to run some sssu commands using a vbscript.
I create a file which contains the commands to run with sssu FILE.
But as I try to run the sssu using this kind of script :
WshShell.CurrentDirectory = SSSU_PATH
SSSU = sssu & "FILE script.txt > sssu_out.txt"
Set oSSSU = WScript.CreateObject("WScript.Shell")
oSSSU.Exec(SSSU)

I don't get any result in the sssu_out.txt.

As anyone ever tried to run (successfully) a sssu in a vbscript ?

thanks

nicolas figaro
2 REPLIES 2
nicolas figaro
Occasional Contributor

Re: sssu and vbscript

this is a typical vbscript hint
oSSSU.Run "%comspec% /c " & SSSU_CMD, 1, False



Matthias Rettl
Frequent Advisor

Re: sssu and vbscript

nicolas,

could you be so kind and post some sample scripts (sssu and vbs) to this thread?

thank you in advance, salu,
matthias