GetFileList using variables

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
MacschedStudent
Junior Coder
Posts: 36
Joined: Fri Oct 12, 2007 5:55 pm
Location: federal way wa
Contact:

GetFileList using variables

Post by MacschedStudent » Fri Feb 27, 2009 12:04 pm

Hey guys I'm running macro scheduler 7.4.009

I'm reading a file (BackUpTemplate.ini) that contains folder path information.
Can GFL be used with a variable like the code snippet below:

Code: Select all


Let>v=1
Label>start
ReadLn>BackUpTemplate.ini,v,BkDrvs
'MessageModal>BkDrvs
If>BkDrvs=##EOF##,finish
'Message>line



GetFileList>BkDrvs\,files
Separate>files,;,file_names


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

Post by Marcus Tettmar » Fri Feb 27, 2009 12:12 pm

Yes, if the variable is to be part of something else then put it in % symbols.

GetFileList>%BkDrvs%\,files
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