how to pass commandline arguments that with blank space to a batchfile?

  • Thread starter Thread starter thinktwice
  • Start date Start date
Todd Vargo said:
Agreed, OP that started this thread did not state draging was the mode of
usage. People do type commands at the prompt, drag files and folders or
even
paste into the prompt and can easily lose track quoting, especially when a
command at the prompt spans multiple lines.

Understood. Technically, one should probably consider writing one's code to
process only valid input, and flag the invalid as such. Given the
clunkiness/weakness of batch scripting when it comes to string processing, I
generally keep the parameter validating code to a minimum, and just let it
display whatever ugly errors cmd.exe can think up. I also generally avoid
requiring the user to type in syntactically complicated parameters, making
this a bit less likely to happen.


/Al
 
Back
Top