hiento09 fe3d682530
Enhance Cross-Platform Argument Handling for Nitro Startup Scripts (#674)
* Patch all argument of bat script to nitro command run

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
2023-11-21 13:49:32 +07:00

13 lines
299 B
Batchfile

@echo off
rem Attempt to run nitro_windows_amd64_cuda.exe
cd win-cuda
nitro.exe %*
rem Check the exit code of the previous command
if %errorlevel% neq 0 (
echo nitro_windows_amd64_cuda.exe encountered an error, attempting to run nitro_windows_amd64.exe...
cd ..\win-cpu
nitro.exe %*
)