Separate Command not working??

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
basajo0512
Newbie
Posts: 2
Joined: Fri Feb 28, 2003 8:43 pm

Separate Command not working??

Post by basajo0512 » Sat Mar 01, 2003 1:31 am

I'm trying to use the separate command but can't seem to get it working. Here's an example I'm using to illustrate my problems.

GetFileList>c:\test\*.*, files
Separate>files,;,file_names
Message>Num Files: %file_names_count%, %file_names_1%, %file_names_2%, %file_names_3%



In my c:\test directory, I have three files. When I step through my program, here's what I get in my watch list when I execute the first line.

FILES=c:\test\AUTOEXEC.BAT;c:\test\Daily Report 02-27-03.xls;c:\test\dailyreport.xls

That looks great. It's all the files I have in that directory. But when I run the second line (the Separate command), I get the following in my watch list.

FILE_NAMES_COUNT=1
FILE_NAMES_1=files

And my script won't work from there on out. It looks to me like the Separate command isn't doing it's job. The only thing I can think of is that I'm using NT 4.001381. I know it's not the optimal OS but I have to use it because of work.

If anyone knows why this command isn't working and/or how I can get it working, please let me know. Also, if anyone else has had problems using MS on NT, please let me know as I'm just getting to know this product.

Any help you can provide is greatly appreciated.
-Jose Basa

Lumumba

Post by Lumumba » Sat Mar 01, 2003 10:53 am

Haven't got any problems with NT.
But to be honest, you have to have the option to compare it, to decide if it's an OS related problem. :wink:

Sorry, no clue about your issue, cause I use an older Macro Scheduler release without the sep> command :roll:

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sat Mar 01, 2003 12:33 pm

Hi,

Can't reproduce on NT. We need to see your script to work out what is wrong. Please email your script to [email protected] and someone will take a look at it.
MJT Net Support
[email protected]

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sat Mar 01, 2003 10:44 pm

Hi Jose,

Just remove the extra space (between "," and "files") in the first line, that's, GetFileList>c:\test\*.*,files Then your script should run to your satisfaction.

basajo0512
Newbie
Posts: 2
Joined: Fri Feb 28, 2003 8:43 pm

THANKS!!

Post by basajo0512 » Thu Mar 20, 2003 8:45 pm

Sorry I'm so late in getting back but I tried Armstrong's suggestion and it worked. Thanks everyone for your help.

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