hexagon logo

Wildcards in variables

Hello!

Sorry if this is posted before but I am could not find anything :S

I need to delete some files ending in .probe with pcdmis in c:\temp and I would like to use a variable to define all files of this type. Is this possible to do with just the assign variable command or from the delete file command directly? Thanks in advance!
Parents
  • Something like this ?
    DO/
    V1=FILE/DIALOG,Choose a file to delete.
    V2=FILE/EXISTS,V1
    IF/V2<>0
    COMMENT/OPER,File exists. Ready to delete.
    FILE/DELETE,V1
    END_IF/
    C1 = COMMENT/YESNO,NO,Full Screen=NO,
    Do you want to delete another file ?
    UNTIL/C1.INPUT=="NO"


    Hmm not quite. I need PCDMIS to auto delete all "*.fileextension" from a specific folder without asking anything or forcing the operator to choose. For example, for *.txt files in C:\test I execute the program and it auto deletes 1.txt , 10.txt, whatever.txt etc.
Reply
  • Something like this ?
    DO/
    V1=FILE/DIALOG,Choose a file to delete.
    V2=FILE/EXISTS,V1
    IF/V2<>0
    COMMENT/OPER,File exists. Ready to delete.
    FILE/DELETE,V1
    END_IF/
    C1 = COMMENT/YESNO,NO,Full Screen=NO,
    Do you want to delete another file ?
    UNTIL/C1.INPUT=="NO"


    Hmm not quite. I need PCDMIS to auto delete all "*.fileextension" from a specific folder without asking anything or forcing the operator to choose. For example, for *.txt files in C:\test I execute the program and it auto deletes 1.txt , 10.txt, whatever.txt etc.
Children
No Data