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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy question?

Status
Not open for further replies.

kwj1027

IS-IT--Management
Aug 10, 2004
28
US
Trying to put a vbCrLf in a batch file using wscript (example below). When I run the script with the & vbCrLf & it skips that portion and goes to the next step.

I have tried several variations for the CrLf to no avail.

echo wscript.echo inputbox("Enter the Software Revision you wish to install." & vbCrLf & "(The software revision must be at c:\.)", "Sofware Revision") > tmp.vbs

Your assistance is appreciated.

Regards
 
Try using Chr(10) and/or Chr(13) in place of the vbCrLf.
 
Hello rjoubert, thanks for the quick response.

That is one of the other 'solutions' I had tried previously.

Either way if I enclose my two test strings with "" it just seems to bypass the step in the script. If I remove the "" of course the CrLf is just displayed as part of the text string.

Appreciate any assistance and insight.

 
Thanks trollacious - after I read your post a couple of times (Monday morning blur) it made sense and I got it to work. Appreciate your time and effort!

Regards
 
Your problem wasn't a VBScript problem, but a batch file problem related to echo.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top