Hello,
I have a folder containing these files:
text_a.pdf
text_b.pdf
text_d.pdf
text_x.pddf
how can I get a return of filelist excluding the X file.
I can sort and copy all files with out X to a folder and get filelist of that folder, but there should be a more efficient way of doing it
Thank you
List files with exclusion
Moderators: Dorian (MJT support), JRL
Re: List files with exclusion
This help?
Code: Select all
Let>vPath=%userdocuments_dir%\PDF_Files
.
Let>RP_Wait=1
Let>RP_Windowmode=0
RunProgram>cmd /c dir "%vPath%\*.*" | find /V /I "_x" | clip
GetClipboard>vData
MDL>vData
Re: List files with exclusion
Thank you I will try it, does it work if I want to exclude X and Y for example?
Re: List files with exclusion
Just add another "find". Type "DOS find" into your favorite search engine for more info.
Code: Select all
Let>vPath=%userdocuments_dir%\PDF_Files
.
Let>RP_Wait=1
Let>RP_Windowmode=0
RunProgram>cmd /c dir "%vPath%\*.*" | find /V /I "_x" | find /V /I "_y" | clip
GetClipboard>vData
MDL>vData
Re: List files with exclusion
Hi JRL,
May I know the meaning of the dot in Line 2? A comment/remark line?
Thanks.
May I know the meaning of the dot in Line 2? A comment/remark line?
Code: Select all
Let>vPath=%userdocuments_dir%\PDF_Files
.
Re: List files with exclusion
Perhaps a symbol of anarchy? A dot hidden between the lines of code to remind the proletariat to stay strong? OR, way more likely, a way to provide white space in the code since the (code) (/code) html function removes blank lines.
Re: List files with exclusion
Hi JRL,
Oh! Previously thought you've discovered an undocumented new feature. It turns out to be a white space. Thanks JRL.
Oh! Previously thought you've discovered an undocumented new feature. It turns out to be a white space. Thanks JRL.