PDA

View Full Version : Placing quotes in a string



Borg
2005-01-14, 08:31 PM
In the following function, I need to get quotes around the "Proview Scripter Lite"
portion of the string. I just can't seem ot figure out how to do it.

Any help is appreciated.

Shell ("C:\Program Files\AutoCAD 2005\Acad.exe /P Proview Scripter Lite)

RobertB
2005-01-14, 09:54 PM
All you need to do is double-up the quotes:
aShell.Run ("Acad.exe /P ""C:\AcadCfg\5 AU.arg""")

mtuersley
2005-01-18, 04:54 AM
Or concatenate if Bob's suggestion doesn't work:

aShell.Run ("Acad.exe /P & Chr(34) & "C:\AcadCfg\5 AU.arg" & Chr(34))