You can escape by doubling the quotes
g="abcd """ & a & """"
or write an explicit chr()
call
g="abcd " & chr(34) & a & chr(34)
More Related Contents:
- Is it possible to embed and execute VBScript within a batch file without using a temporary file?
- Recursively access subfolder files inside a folder
- Hide command prompt window when using Exec()
- Cannot use parentheses when calling a Sub Error 800A0414 VBS
- Prevent VBscript app from showing Console Window
- How do I run a VBScript in 32-bit mode on a 64-bit machine?
- Read and write into a file using VBScript
- Creating multi-select list box in VBScript [closed]
- Does VBScript allow named arguments in function calls?
- How do I sort arrays using vbscript?
- VBscript code to capture stdout, without showing console window
- Run Command Line & Command From VBS
- Breaking a String Across Multiple Lines
- ADODB.Parameters error ‘800a0e7c’ Parameter object is improperly defined. Inconsistent or incomplete information was provided
- What does the “On Error Resume Next” statement do?
- VBScript to send email without running Outlook
- How can I use Clipboard in vbscript? [duplicate]
- How to find the window Title of Active(foreground) window using Window Script Host
- How to identify between ok and cancel button in inputbox
- Can I pick up environment variables in vbscript WSH script?
- VBscript relative path
- Use clipboard from VBScript
- How do I include a common file in VBScript (similar to C #include)?
- VBS with Space in File Path
- insert a variable to cmd command
- Creating and writing lines to a file
- What is the difference between VBScript’s + and & operator?
- Create a folder in Outlook: error 800A0401 – Expected End of Statement
- Is the Sleep operation no longer used in VBscript?
- Run a vbscript from another vbscript