VB script need help!

Microsoft Windows xp professional w/serv...
March 23, 2010 at 10:08:28
Specs: Windows XP
I'm trying to get my vb script to writeline to another vb script but it drops a " off which is causing problems when I need to run an MSI. For the MSI to run in it needs ""value"" in the sh.run section.

Here is my current script:

instvbs.WriteLine("   Sh.Run(""msiexec /i ""%systemdrive%\Software\PatchLink\updateagent.msi"" /qn HOST=""http://emea-patchlink.company.com"" SERIAL=""555555-EE73757E""""), 0, True")

Result in instvbs.vbs:

   Sh.Run("msiexec /i "%systemdrive%\Software\PatchLink\updateagent.msi" /qn HOST="http://emea-patchlink.company.com" SERIAL="55555-EE73757E""), 0, True

I've tried changing it to """value""" but it doesn't allow it. Saying Expected ')'
Please help!

See More: VB script need help!

Report •

March 23, 2010 at 10:54:43
In a VBS string, dual double quotes results in a single double qoute. If you're only getting half the double quotes you need, increase your double quotes by a factor of 2.

Report •

March 23, 2010 at 13:28:21
Bingo! That was driving me crazy.

Thanks alot :)

Report •
Related Solutions

Ask Question