How to execute a program with parameters with KiXtart

To run an executable in KiXtart you use the RUN command. If the executable requires command-line parameters which are surrounded by double-quotes, surround the entire command string with single quotes:

Example:

I have a utility myregutility which makes changes to the registry. It accepts source and destination registry paths as arguments, and both must be surrounded by double-quotes for the command to run. The KiXtart syntax is (command wraps):

RUN @LDRIVE + '\myregutility /s "HKEY_CURRENT_USER\Software\Microsoft" "HKEY_CURRENT_USER\Software\Macrosoft"'

Note the single quote before \myregutility and after the final double-quote.


Author: ASAK
Created: Oct 26 2006
Categories: KiXtart
TechByte #143

Warning: By visiting this site and/or by using any information contained herein, you agree to the Techbytes.ca terms of use.



Add a comment about this TechByte

If you wish to add a comment regarding this TechByte, please use the form below. Please note that by submitting comments using this form you are allowing all of the information submitted to be visible on this website. Any comments submitted using this form will only be shown on the website if they are approved by the administrators of this site. IF APPROVED, COMMENTS MAY TAKE SEVERAL DAYS TO BE POSTED.

Posted By: (Optional)

Comments:


Other TechBytes: