| 1. |
Solve : Command Line Paramters? |
|
Answer» I've got a generic bat file, sasmenow, with four command line parameters. It's got long path strings in it. The four command line paramters, which represent file names and or path-filenames, have some blanks in them. For EXAMPLE the first parameter is 'auth clms'. Is there an escape character that allows the parser to group 'auth clms' while keeping the blank?DOUBLE quotes are what you need: Let me back up and give a more complete picture Use the %~n format of the runtime parameter which will strip away the quotes but maintain the integrity of each parameter. Replace n with the ACTUAL number of the parameter. You may have to insert the leading and trailing double quotes back into the reconstructed string. If you know VB, consider using VBScript for this. You might want to consider sending the parameters fully constructed from the calling program. There is a 255 character limit on runtime parameters; shouldn't be an issue. Or consider using the file shortname. Happy Computing. 8-)Sidewinder, Dat worked great. Thanks. |
|