Your compiled application’s EXE file supports several command-line switches (also known as arguments) that automate specific actions at startup. You can use these in shortcuts or scripts to control how the application behaves when it launches.
Tip
👉 These command-line arguments can also be retrieved at runtime using the VBA API to read command-line parameters.
Available Switches #
-deact #
Initiates the deactivation process, allowing a user to move their license to another computer.
MYAPP.EXE -deact-del #
Erases all of the application’s secure save files and loads the original workbook. Use with caution, as this action cannot be undone.
MYAPP.EXE -del-enterkey #
Opens the activation dialog box, allowing the user to enter a new activation key. This is useful for replacing an old or expired key.
MYAPP.EXE -enterkey-load #
Opens a file dialog prompting the user to select a save file to load.
MYAPP.EXE -load-reset #
Discards any unsaved changes from the last session and loads the original, unmodified workbook. This does not delete any .xlsc save files.
MYAPP.EXE -reset-webupdate #
Forces the application to immediately check for a new version online, based on your “Web Update” settings.
MYAPP.EXE -webupdateLoading a Specific Save File #
You can also launch the application with the full path to a secure save file (.xlsc or .xlsce) as an argument. This will automatically load the specified file at startup without any prompts.
MyApp.exe "D:\My Documents\123.xlsc"
