extract part of a filename to create a folder

Post variable and regex related tips, questions.

Postby melvin » Tue Sep 16, 2008 6:20 pm

can you hardcode in 485 or 245 into a file monitor task?

if yes, then use one file monitor task and check for the '485' in the filename. if it passes this check, run a copy task to move it into the 485 subfolder.

similarly for the 245 filename.

However, if the filename is PS_AAA_CANCAD.csv where AAA continuously varies, then you have to use a Script task to detect AAA and transfer the file to the appropriate AAA folder. is this the case?
Site Admin
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california

Postby Tech Support » Fri Sep 19, 2008 3:59 pm

there are script examples via the script task interface. We will write a simple script out here to trim the variable next week. remind us if we forget.
Tech Support
Site Admin
Posts: 1279
Joined: Thu May 25, 2006 11:12 am

Return to Variables and Regular Expressions

Who is online

Users browsing this forum: No registered users and 3 guests