UVK scripting commands - <Comment>

Show menu

<Comment>

This mode allows you to write comments in your script, explaining what it does and how it works. The lines under the <Comment> keyword will be ignored by UVK and you can use this mode anywhere in the script. Example:

<Comment>

This script will defragment the system drive and clear the hosts file.
Note that this can take long, depending on several factors.

<RunWait>

%comspec% /c echo 127.0.0.1 localhost>%systemdir%\drivers\etc\hosts
%SystemDir%\defrag.exe %SystemDrive% /v

You can also insert comment lines anywhere in the script by preceeding them with a semi-colon. Example:

;This script will only reset the hosts file because the last line is commented

<RunWait>

%comspec% /c echo 127.0.0.1 localhost>%systemdir%\drivers\etc\hosts
;%SystemDir%\defrag.exe %SystemDrive% /v

 

 

Back to the list

 


 

Copyright Carifred © 2010 - 2024, all rights reserved.

Scroll to top