I'm sure this can be done in 15 seconds by those who know how...
I'm looking for a batch/cmd file that will run another program/command for every filename in the release/download directory (%1 if I'm not mistaken). The command to be run doesn't support wildcards so it needs to be fed each and every filename.
Would also be great if the script waits for the command to end before proceeding to feeding it the next filename.
Assmonkey wrote:It's actually an SFV-checker of sorts but not.
Wow that's a very clear description. Thank you. Anyhow, what do I care.
Assmonkey wrote:You don't like my nick, haha? My girlfriend gave it to me, hahaha.
You might like to see http://www.urbandictionary.com/define.p ... =assmonkey for the meanings associated with your nick. Maybe then you'll understand. Makes me wonder why a girl would give her boyfriend such a nickname.
Maybe someone can help with your technical concern.
set dirname=%1
set dirname=%dirname:"=%
set name=%3
set name=%name:"=%
set nbID=%4
set DLTYPE=%5
for /R "%dirname%" %%f in (*.iso) do call :doit "%%f"
GOTO :EOF
:doit
REM the file you want is now in %1 and already has quotes around it
DIR %1
GOTO :EOF
this will work on any .iso. if you want all files you can use just * otherwise *.whatever
just substitute the DIR for the command you want to run
Last edited by doubledrat on July 31st, 2009, 4:56 am, edited 1 time in total.
doubledrat wrote:
yours is fine as long as you never want to do more than 1 command and your files are not in subdirectories
you could add a /S to the dir as long as you get all the tokens as one with tokens=1* and delims={somecharacterthatwon'tappearinfilenames} in the options.