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

A

Al Dunbar

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top