Getting a list of files

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
DaveYuhas
Newbie
Posts: 2
Joined: Wed Jan 20, 2010 10:57 pm

Getting a list of files

Post by DaveYuhas » Wed Jan 20, 2010 11:14 pm

Hi -

First post here, so please bear with me...

I'm using MS example code to get files from a dir into a list but the separate> command doesn't seem to work right.

There are four files in the source dir, but separate> returns a count of 1. At least that's what I think it's doing from watching the debugger.

The code:

GetFileList>g:\backups\reflect\*.mrimg, files
Separate>files,;,file_names

The watch list shows all the files, separated by ;'s, in the files var.
The watch list shows file_names_count=1, but it should be 4.

I'm probably missing something, but I don't know what.
Dave Yuhas

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Jan 20, 2010 11:31 pm

GetFileList>g:\backups\reflect\*.mrimg, files
Separate>files,;,file_names

The watch list shows all the files, separated by ;'s, in the files var.
The watch list shows file_names_count=1, but it should be 4.

I'm probably missing something, but I don't know what.
I suspect it is something extra vs. missing something. Is that an extra space char in front of files?
GetFileList>g:\backups\reflect\*.mrimg, files
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

DaveYuhas
Newbie
Posts: 2
Joined: Wed Jan 20, 2010 10:57 pm

Thanks.

Post by DaveYuhas » Wed Jan 20, 2010 11:37 pm

That was it, the extra space. Many thanks for the help.
Dave Yuhas

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