delimiting

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
tunnacla
Newbie
Posts: 1
Joined: Fri Feb 25, 2005 1:03 pm

delimiting

Post by tunnacla » Sat Feb 26, 2005 5:47 pm

Hi
How do a delimit a sting containg the "\" symbol. eg c:\path\hell\... so I get each directory individualy.
The seperate command only does lists.
help
Adrian

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

Post by support » Sat Feb 26, 2005 6:21 pm

A list is a string. Separate will separate any string and can use any delimiter:

Let>path=c:\root\folder\subfolder\detailfolder
Separate>path,\,dirs

Creates the following variables:

DIRS_COUNT=5
DIRS_1=c:
DIRS_2=root
DIRS_3=folder
DIRS_4=subfolder
DIRS_5=detailfolder
MJT Net Support
[email protected]

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