Hi OL Team,

I'm using a java script to capture file using the first 6 character, but my script is not correct, and need your help.

I want to use a case statement then Folder Capture, cause there could be 100s of files starts with ABC999......

ABC999xv1.pdf
ABC999yv2.pdf
ABC999dv3.pdf

I want to capture any files starts with ABC999

code is:

var FileName
FileName = Watch.getjobinfo(9)

switch (FileName)
{
case "ABC999" :
Script.returnvalue = 1;
break;
case "ABC888" :
Script.returnvalue = 1;
break;
default :
Script.returnvalue = 0;
break;
}

THANKS
_________________________
Peace