Link to home
Start Free TrialLog in
Avatar of xzay1967
xzay1967

asked on

Help with quotes in script

Hey all I am trying to build a package using a VB script. I am having some trouble applying the quotes so that the install script gets interpreted correctly. I am not getting an error, but when I echo the output, it is not translated to what it is supposed to be.
Here is what I have so far
strScriptFolder & "Source\setup.exe" & " /Config" & " \\Hplandesk95\packages\Microsoft\Publisher 2010\Source\AddPublisher.xml" & Chr(34) &  " /Modify Proplus"

Open in new window

This is what it is supposed to translate to:
"\\Hplandesk95\packages\Microsoft\Office2010\x32\Source\Setup.exe" /config "\\Hplandesk95\packages$\Microsoft\Publisher 2010\Source\AddPublisher.xml" /modify ProPlus

Open in new window

strScriptFolder is the variable for: \\Hplandesk95\packages\Microsoft\Office2010\x32
Thanks in advance
SOLUTION
Avatar of Chris
Chris
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xzay1967
xzay1967

ASKER

Lol, thanks Chris, I see you totally removed the chr(34). For me that is fine, it is just that my senior wants to stick that format. I will still try it and see if it works. Thanks again.
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial