|
-
Feb 16th, 2012, 10:33 PM
#1
Thread Starter
New Member
Not able to use the pipe character in a parameter
I am having issues when using the pipe character in VBscript, but works with other characters. For example I call a batch file from the vbscript as shown below
Set objXML = CreateObject("Microsoft.XMLDom")
objXML.loadXML("<document/>")
Set xmlNode = objXML.documentElement.AppendChild(objXMl.createElement("batchprocess"))
xmlNode.setAttribute "file", "D:\Documents\Batch\Test.bat "TEST|PASS|1"
xmlNode.setAttribute "queued", "true"
the parameter I am passing is TEST|PASS|1, and because of the "|" character it is not working. If I use TEST_PASS_1 it works fine. Is there a way I can work around to use the pipe character?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|