Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: IntControl(1006,0,0,0,0)
Here is how I called it:
myprogram.exe /1stArg /2ndArgRay's 3rdArgwhere the params (based on space delimiting should be):
param0 = 3 param1 = /1stArg param2 = /2ndArgRay's param3 = 3rdArgHowever I get this:
param0 = 2 param1 = /1stArg param2 = /2ndArgRays 3rdArgAs you can see it removes the apostrophe and concatenates the rest of the arguments together.
I know this is all because apostrophe is being treated somewhat like a "beginning quote" ... but how do I get around it? I can't scan for the apostrophe "before", because the first access I get to the commandline parameters is with "param1, param2, etc etc".
line=IntControl(1006,0,0,0,0) line=strreplace(line," "," ") line=strreplace(line," "," ") line=strreplace(line," "," ") line=strreplace(line," "," ") line=strreplace(line," "," ") line=strreplace(line," "," ") param1=ItemExtract(1,line," ") param2=ItemExtract(2,line," ") param3=ItemExtract(3,line," ")Something like that anyway. Play with it a little. Watch out for path names or filenames with spaces in them.
Article ID: W13902
Filename: Command Line Parameters with Apostrophe in Parameter.txt
File Created: 1999:04:15:16:57:10
Last Updated: 1999:04:15:16:57:10