Go Back   Computer Forums > General Computing > Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 12-17-2005, 01:53 AM   #1
Beta Member
Join Date: Dec 2005
Posts: 2
Default Batch file woes....

EDIT: Ehh... I figured it out. I had to escape the & characters by preceding them with a ^.


echo CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False>bleh.vbs
doesn't work, it refuses to echo to file.

However, it works if it's enclosed with quotes:
echo "CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False">bleh.vbs
But then it outputs those enclosing quotes, in addition to what I want...

How can I write to file, omitting the enclosing quotes?
gggggg is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 10:59 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0