
FAQs
Customize your WinSPC launch using command line switches
Command-line switches may be used to launch WinSPC or when accessing WinSPC via OLE Automation. These commands allow you to program a station to open to a specific window of WinSPC, in a certain mode, limit the station to a specific user and/or password, and more. 1. Click Start -> All Programs -> WinSPC 2. Right-click the WinSPC CS icon. (This shortcut icon may also be on your desktop.) 3. From the shortcut menu, select Properties.
4. In the WinSPC CS Properties dialog box that is displayed, click the Shortcut tab.
"Pathname"/(switch)(parameter)/(switch2)(parameter2) where: Pathname is the complete path for the WinSPC executable, enclosed in quotation marks. Switch is optional and repeatable (as shown). You may use one or more of the options below: /m automatically opens WinSPC to the Plant Monitor window Use this option to open the Plant Monitor with the specified collection plan noted. Exiting or closing the collection plan closes the entire work session. Example: "c:\directoryname\subdirectoryname\winspc32.exe" /m "\pathname\collection plan name" /c automatically opens Data Collection with a specified Collection Plan Use this option to open Data Collection with the specified collection plan noted. Exiting or closing the collection plan closes the entire work session. Example: "c:\directoryname\subdirectoryname\winspc32.exe" /c "\pathname\collection plan name" /u automatically opens WinSPC with a specified user Specifying a user limits access to that user only. When no password is specified, WinSPC opens a dialog box where a user can enter his or her password. Example: "c:\directoryname\subdirectoryname\winspc32.exe" /u "username" /p automatically opens WinSPC using a specified password Specifying a password limits access to only those users who have that password. /q launches the program in quiet mode This option launches WinSPC without displaying a splash screen or login screen. /o opens the program in off-line mode This option launches WinSPC in an off-line mode even if the client is actually connected to the server. /a archive Upon launch and login, the archive book runs. This command is intended to be used in conjunction with the /u and /p commands, though not required.
6. Click Ok. "c:\Program Files\DQS\WinSPC\winspc32.exe" /u "Bob" /p "password" /c "testplan" Upon launching the software, WinSPC would automatically insert Bob as the username, log him in using the password specified and take him to the collection plan named testplan. When he exited WinSPC, it would take him all the way out of the application. |
Support & Resources


