How can I automatically pass one file path into cmd at a time -


i'm using version of waifu2x upscale large amounts of images. problem not have function passing in folder or multiple images @ time. speed process created batch file passes in file name command process automatically:

@echo off :start set /p filename=file name: wx2.exe -i "c:\users\codyi\documents\dolphin emulator\dump\textures\rzde01\%filename%.png" -m noise_scale --noise_level 2 --scale_ratio 2 -o "c:\users\codyi\documents\dolphin emulator\load\textures\rzde01\%filename%.png" goto start 

running above script opens cmd window asks me file name. takes file, processes it, asks me another. while speed things up, need way paste/drag , drop multiple file names, have take first file, process it, take second file, , process it, on , forth.

this should work pass files folder had originally:

@echo off /f "delims=" %%a in ('dir "c:\users\codyi\documents\dolphin emulator\dump\textures\rzde01\*.png" /b /a-d ') (   wx2.exe -i "c:\users\codyi\documents\dolphin emulator\dump\textures\rzde01\%%a" -m noise_scale --noise_level 2 --scale_ratio 2 -o "c:\users\codyi\documents\dolphin emulator\load\textures\rzde01\%%a" ) pause 

Comments