Solved Batch to user dropped in file for processing

August 10, 2012 at 13:46:33
Specs: Windows 7
It's been awhile since I played with some batch scripting and never really got around to utilizing drag and dropped files as the source.
Basically I want a batch file to do this
converter "droppedfile.sdtid" -android -o "droppedfile".txt

Going to have to start mass converting some rsa tokens to android compatible format.
Now the input files will all be .sdtid, but that isnt necessary for the outputted txt, so not sure if theres a simpler way to remove or itll just be ddiggs.sdtid.txt


See More: Batch to user dropped in file for processing

Report •


#1
August 10, 2012 at 14:17:03
✔ Best Answer
Untested:
:loop
@converter "%~1" -android -o "%~dpn1.txt"
@shift
@if not "%~1"=="" goto loop

How To Ask Questions The Smart Way


Report •

#2
August 10, 2012 at 14:34:16
Excellent. Worked like a charm. Afterwards I thought it'd be good to append the name -android.txt, so I just set it to "%~dpn1-android.txt" and worked. Many thanks.

Report •

Related Solutions


Ask Question