I want to create a bat file that searches a specific folder for *.pdf files and executes the following two commands:
C:\Program Files (x86)\Nitro PDF\Professional\NitroPDF.exe /CV "pdf-filename"
move the file from
C:\Users\ADMINI~1.MED\AppData\Local\Temp\1\pdf-filename
toz:\
Any ideas?
I have written the following which returns the .pdf
files:
FORFILES /P z:\ /M *.rtf /C "cmd /c echo @file"
I think this will work both from the command line and from within a batch file
i think the easiest thing is to push the files resolved by "forfiles" to a second batch file... I tested it and show you my example (you only have to change "secondbat.bat to nitropdf and the second thing...).
then i typed
the secondbat gets its parameter by %1.
Content of secondbat.bat is only:
this test started 2 notepads...
I think this is it (please tell me if it worked the way you wanted to).