Re: White spaces into folder name

new topic     » goto parent     » topic index » view thread      » older message » newer message

This could easily be done manually if you know when you're looking for a file name in relation to other parameters. Imagine I provide my program the following command line:

eui program.ex --filename C:\Documents and Settings\username\Desktop\Some Random File.txt --option 1 --do-not-fail 

As I'm looping through the output command_line() and I come across the parameter --filename, I could set a flag in my loop, like in_filename = true and then collect those parts until I encounter another parameter like --option, then join() all the parts I collected between those steps and set that as my entire file name. It's not a trivial process but it's certainly not difficult if you use a well-structure set of parameters.

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu