Page 1 of 1

Run UVK script from Batch

Posted: Sun Jun 26, 2016 3:18 pm
by MartijnH
Hi,

I made a batch file which finds the the operating system version etc. to choose between my UVK cleaning scripts.
Is it possible to run a uvk script with uvk from a batch file? I can't get it to work.

This is what i have so far:
IF "%windows%"=="Windows 8" start RolinRepairPortable.exe Win7%8.uvk
IF "%windows%"=="Windows 10" start %UVKExe% -ReadFile "Win10.uvk"
(I tried both and both do not work)

Thanks in advance,
Martijn

Re: Run UVK script from Batch

Posted: Sun Jun 26, 2016 4:38 pm
by Fred
Hi Martijn.

If UVK is already installed, you can use the following method:

Code: Select all

start /wait "" uvk_en.exe -readfile "script path.uvk" -Passive
Otherwise, I would recommend you use UVKSetup instead, if you need your batch to wait for UVK to complete in each command. Place UVKSetup.exe in the same directory as your batch.

Code: Select all

rem Place the line below before any uvk_en.exe commands:
start /wait "" "%~dp0UVKSetup.exe" -NoRp -Auto -NoRun
rem Then you can run your uvk_en.exe commands:
start /wait "" uvk_en.exe -readfile "script path.uvk" -Passive

Re: Run UVK script from Batch

Posted: Sun Jun 26, 2016 5:34 pm
by MartijnH
Thanks Fred, it works like a charm!