realcugan-ncnn-vulkan icon indicating copy to clipboard operation
realcugan-ncnn-vulkan copied to clipboard

Easy Drag and Drop Acceptable Batchfile for Windows

Open roflsunriz opened this issue 2 years ago • 2 comments

This isn't issue for technically but I don't know where to make so I made here... Enlarges to x2(default) and uses model models-pro, and add "x2" to the end of file name

@echo off
cd "%~dp0"
realcugan-ncnn-vulkan -i "%~1" -m models-pro -o "%~n1x2.png"
pause

roflsunriz avatar Feb 09 '23 09:02 roflsunriz

Extend for multiple input

@echo off
cd "%~dp0"
for %%q in (%*) do (
echo %%q
realcugan-ncnn-vulkan -i %%q -m models-pro -o "%%~nqx2.png"
)
pause

roflsunriz avatar Feb 14 '23 04:02 roflsunriz

Little fix for using drag and dropped current directory

@echo off
cd %~dp1
for %%q in (%*) do (
echo %%q
"path-to-realcugan-ncnn-vulkan\realcugan-ncnn-vulkan-20220728-windows\realcugan-ncnn-vulkan.exe" -i %%q -m models-pro -o "%%~nqx2.png"
)
pause

roflsunriz avatar Feb 25 '23 04:02 roflsunriz