I have a program that uses 2 parameters. I start the program at a command line like "script.vbs value1 value2"
In the script I use the following syntaxt to extract the parameters:
val1 = cstr(wscript.arguments(0))
val2 = cstr(wscript.arguments(1))
However, my parameters are now containing spaces, and I need to use another seperator, such as a |.
Can someone share a method of using a | as a seperator between parameters, instead of the standard space?
Thanks in advance
ije
In the script I use the following syntaxt to extract the parameters:
val1 = cstr(wscript.arguments(0))
val2 = cstr(wscript.arguments(1))
However, my parameters are now containing spaces, and I need to use another seperator, such as a |.
Can someone share a method of using a | as a seperator between parameters, instead of the standard space?
Thanks in advance
ije