<script language="vbscript">
Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.Run("\\server\vphome\clt-inst\WIN32\SETUP.EXE /s /v" _
& chr(34) & "/qb" & "+" & " /mnavmnt" & chr(34))
</script>
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> I am currently trying to get vbscript to run a command
> line app with command line switches that starts an install
> of NAVCE. i've gotten this far:
> <script language="vbscript">
> Set WshShell = Wscript.CreateObject("Wscript.Shell")
> WshShell.Run("\\server\vphome\clt-inst\WIN32
> \SETUP.EXE /s /v" & chr(34) & "/qb" & "+" & " /mnavmnt" &
> chr(34)")
> </script>
> does that look right? I keep getting unterminated string
> constant errors that point to the line and column that are
> just past the final ) on the end. First of all, am i doing
> this right? Second, am i missing some quotes or something?
> the raw command as it would be used at a DOS prompt is
> this:
> \\server\vphome\clt-inst\WIN32
> \SETUP.EXE /s /v"/qb+ /mnavwnt"
> thanks