Run UVK script from Batch

You need help to start using UVK? You have a doubt on a UVK feature? Post here!
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
MartijnH
Posts: 11
Joined: Fri Sep 25, 2015 9:42 am
Location: The Netherlands

Run UVK script from Batch

Post 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
Fred
Site Admin
Posts: 2360
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: Run UVK script from Batch

Post 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
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
MartijnH
Posts: 11
Joined: Fri Sep 25, 2015 9:42 am
Location: The Netherlands

Re: Run UVK script from Batch

Post by MartijnH »

Thanks Fred, it works like a charm!
Post Reply