Thanks everyone !
It works.
Search found 3 matches
- 20 Jul 2014 22:09
- Forum: DOS Batch Forum
- Topic: if condition inside a for loop
- Replies: 4
- Views: 2309
- 20 Jul 2014 21:59
- Forum: DOS Batch Forum
- Topic: if condition inside a for loop
- Replies: 4
- Views: 2309
Re: if condition inside a for loop
Hell Foxidrive,
That's what i see :
if 1191 GTR 842 move "doc1.pdf" "myFolder"
Press any key to continue . . .
if 842 GTR 1191 move "doc2.pdf" "myFolder"
Press any key to continue . . .
Nothing seems to happen i'm afraid...
That's what i see :
if 1191 GTR 842 move "doc1.pdf" "myFolder"
Press any key to continue . . .
if 842 GTR 1191 move "doc2.pdf" "myFolder"
Press any key to continue . . .
Nothing seems to happen i'm afraid...
- 20 Jul 2014 18:59
- Forum: DOS Batch Forum
- Topic: if condition inside a for loop
- Replies: 4
- Views: 2309
if condition inside a for loop
hello everyone, I want to loop through pdf files, find the ones that are portrait, and move them to a seperate folder. pdftk is an executable that gives me this information, so when i type for /f "tokens=2" %%a in ('pdftk %%g dump_data ^| find "PageMediaDimensions"') do ( set /a ...