Topic Options
#57654 - 08/31/20 03:02 PM Run Script Switch Statement
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 394
Loc: Home
Hi, need some help with my Run script,

I'm trying to pick some specific file names from folder capture!

There are too many files and I don't want to pick up files from folder capture individually, instead I'm using a switch statement in a run script but i'm losing files that I do't need. I just want to pick and run files that I want only, how can I do that without picking files I don't need? each file has different names.

I'm also using folder capture for example File1*.* works but there are 100s of files.

Is there a if nest statement or a script to only pick up only files that I need?


Edited by Sami786 (08/31/20 03:10 PM)
_________________________
Peace

Top
#57655 - 08/31/20 04:06 PM Re: Run Script Switch Statement [Re: Sami786]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 651
Loc: Québec, Canada
Have you try setting up multiple filename and filemask as well like this?

File1_*.txt, Diff_F?[abc].*, some?other[^28].dat

Please refer to mask in our documentation.
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#57656 - 08/31/20 04:39 PM Re: Run Script Switch Statement [Re: Sami786]
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 394
Loc: Home
Yes, I have tried the Mask option like ABC*.*, DEF*.*, RE18BC*.* it's not working at all, Comma is not recognized in the Mask box.

Maybe I can write a command line to pick up specific file names Or maybe use Loop plug in to loop through folder until the file is found?
_________________________
Peace

Top
#57657 - 08/31/20 05:51 PM Re: Run Script Switch Statement [Re: Sami786]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 651
Loc: Québec, Canada
My bad frown . The mask separator is a semi-colon (;) not a comma. Tried it and it works.


Edited by Jean-Cédric (08/31/20 06:05 PM)
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#57658 - 09/01/20 02:37 PM Re: Run Script Switch Statement [Re: Sami786]
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 394
Loc: Home
Thank you, that worked smile
_________________________
Peace

Top