Directory list with Spaces in Name

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Directory list with Spaces in Name

Post by kpassaur » Fri Jun 06, 2008 5:28 pm

I am trying to use the directory option with GetFilelist and it works fine unless there is a space in the directory name at which time if returns nothing.

I have tried quotes around the entire line, just the variable (directory name that contains the space) etc. with no sucess. Does anyone know what I am doing wrong?

//Let>jobname=splititup
Let>jobname=loan Files
Let>GFL_TYPE=1
GetFileList>C:\DocumentSeparator\Settings\%jobname%\*.*,dirnames

Both of these folders exist, there names were copied and pasted in.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Jun 09, 2008 7:05 am

Works fine for me on a path with spaces. No quotes required.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts