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
Run UVK script from Batch
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.
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.
Re: Run UVK script from Batch
Hi Martijn.
If UVK is already installed, you can use the following method:
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.
If UVK is already installed, you can use the following method:
Code: Select all
start /wait "" uvk_en.exe -readfile "script path.uvk" -Passive
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
Fred
Re: Run UVK script from Batch
Thanks Fred, it works like a charm!