
newbie needs help with wshShell.run command
i'm a cut and paste scripter, and having problems converting what i've found
on MS.com, the newsgroups, and the WWW for my own use.
i've got this line at the beginning of my script. not quite sure what it
does, but from what i can tell i need to have it, so it's there.
Set wshshell = Wscript.CreateObject("Wscript.Shell")
then i've got this code. 2 issues here
if bld="62600.0000" then goto PATCH
else if bld<"62600.0000" then wshShell.run ("\\server\share\ie
6\flat\win32\en\ie6setup.exe /q", 1, True)
end if
as is, the code bombs out at the G in goto with an "expected statement"
error. i'm so pathetic at coding, i can't even use a goto statement.
so then i modified the code to skip the goto
if bld<"62600.0000" then wshShell.run ("\\server\share\ie
6\flat\win32\en\ie6setup.exe /q", 1, True)
end if
this bombs out and says i can't use paraentheses when calling a sub. i found
documentation for the wshShell.run command and it uses paraentheses - ????
any/all help is greatly appriciated. TIA.
-murph