in reply to Dealing with spaces in folder names with ARGV[0]

I've used the KISS method. Use a invalid character within folder name as ARGV[0]. For Example: Test\Folder. In script substitute '\' with ' '
  • Comment on Re: Dealing with spaces in folder names with ARGV[0]

Replies are listed 'Best First'.
Re^2: Dealing with spaces in folder names with ARGV[0]
by Anonymous Monk on Mar 31, 2015 at 11:13 UTC

    Thanks for your example, I'd still have to rename a folder, I can't though because it's on my work NAS.

    But you did give me the idea of perhaps having a few more ARGV's to pick up each word in the folder name and then performing a string concatenation. Not the most efficient though especially if the folder selected had 10 words each separated by spaces.

    I'll be using the example by Roboticus