I'm struggling to call a command line correctly in VBS due to the \ escape character.
The string output I'm looking to write to the command line is,
batch_name=\"myBatch\"
Which gets passed to a .exe file. Unfortunately, due to the way the \ character works I can only write,
batch_name=\myBatch\
batch_name=\""myBatch\""
I can't get \" in the output! An altered version of my code is below,
BATCH_NAME = "myBatch"
outputString = "batch_name=\" & BATCH_NAME & "\"
I've tried lots of methods - Concatenating the string with Chr(34), using multiple double quotes, even trying to replace() "" with ", nothing seems to work.
Any ideas?