Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I insert a " inside of a string?

Status
Not open for further replies.

matt7530

Technical User
Feb 10, 2003
2
US
I'm writing a simple script to automate connecting ro a network drive, but I need to add a password. Obviously, vbscript won't take:

wshell.run "net use w: \\network drive /user "password""

Anyone know how I can insert quotation marks inside of a string?

Matt
 
Try:

wshell.run "net use w: \\network drive /user & Chr(34) & "password" & Chr(34)
 
Thanks! That's exactly what I needed.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top