string - VBS - Ignoring the \ special character properties -
i'm struggling call command line correctly in vbs due \ escape character.
the string output i'm looking write command line is,
batch_name=\"mybatch\"
which gets passed .exe file. unfortunately, due way \ character works can write,
batch_name=\mybatch\ batch_name=\""mybatch\""
i can't \" in output! altered version of code below,
batch_name = "mybatch" outputstring = "batch_name=\" & batch_name & "\"
i've tried lots of methods - concatenating string chr(34), using multiple double quotes, trying replace() "" ", nothing seems work.
any ideas?
i gave shot and
outputstring = "batch_name=\""" & batch_name & "\"""
worked me giving result batch_name=\"mybatch\"
does work you? how execute command in shell?
Comments
Post a Comment