Using "start" with parameters gives error "invalid switch"

KB Home   |   Using "start" with parameters gives error "invalid switch"

Quite often our customers will want to use “start” in a batch file to start the PaperCut User Client or perhaps perform an Automated & Silent PaperCut Secondary Server installation.

If the path to your file includes a space you will need to enclose it in quotes such as:

start “C:\Path To Installer\pcng-setup-12.1.16778.exe”

However, if you wish to pass parameters to the setup file, you may try this first time:

start “C:\Path To Installer\pcng-setup-12.1.16778.exe” /type=secondary_print /silent

Which returns the error "Invalid switch - "/type=secondary_print".

This can be resolved by adding an additional parameter specifically for start, namely a “title”.

start “PaperCut” “C:\Path To Installer\pcng-setup-12.1.16778.exe” /type=secondary_print /silent

Categories: Windows, Tips & Tricks, Scripting, Implementation / Deployment, Administration


Keywords:

Comments

Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on April 10, 2012, at 04:33 AM
Printable View   |   Article History   |   Edit Article