Previous page

Next page

Switches

Summary

The switches listed in this section are all optional parameters.

/asp

This switch forces the system to act under an ASP environment, regardless of the company setting. Working under an ASP environment will disable some PayGlobal functionality.

/asp=

This switch has same function as the /asp switch, but it includes a company number and username. The /asp switch= switch is in the TM/Allegiance asp infrastructure and it uses the following format:

/asp=[company number].[username]

Do not include the COMP prefix in the company number, but you must include the leading zeroes. For example, /asp=0001.John.

NT users

Under ASP environment, you need to format NT users as:

[companynumber].[username].

  • Company number is the same as the one in HR.ini, but without the COMP prefix.
  • Username is the PayGlobal username.

When you log on to NT from the Internet, this switch will automatically start PayGlobal (specifically "StartPayGlobal /asp=%username%). The PayGlobal login box will contain your username, and after you enter your password, you will log on to the company specified.

/autocreate

This switch applies to SQL databases only. Running this switch enables you to automatically create an empty PayGlobal database.

When this switch is activated a script file is run which bypasses the Company Setup form. Settings are stored in the init.ini file.

  • Before you use the /autocreate switch, you must configure the Init.ini file. This switch uses all of the settings in the Init.ini file.
  • If you use the /autocreate switch you must also specify a /provider switch to specify an OLEDB provider. See ADO and OLE DB Installation for more information on valid providers.
  • If you use the /autocreate switch you must also specify the /adminusername, /adminpassword switches to specify the SQL Server account details to use to create the database as well as the /folder switch for the company data folder.
  • Using the /autocreate switch means you must also specify the /folder switch for the company data folder as well as the /databasename switch and /servername switch
  • When you create a database manually or by using the /autocreate switch, the database is secured automatically.
  • Default records that are normally created when you use the Install Wizard are not created when you use the /autocreate switch.

/autosecure

This switch applies to SQL databases only. Running this switch enables you to automatically secure a PayGlobal database.

When this switch is activated a script file is run which bypasses the Company Setup form. Settings are stored in the init.ini file.

  • If you use the /autosecure switch you must also specify a /provider switch to specify an OLEDB provider. See ADO and OLE DB Installation for more information on valid providers.
  • If you use the /autosecure switch you must also specify the /adminusername, /adminpassword switches to specify the SQL Server account details to use to create the database as well as the /folder switch for the company data folder.
  • Using the /autosecure switch means you must also specify the /folder switch for the company data folder as well as the /databasename switch and /servername switch

When you restore a database using an outside process, such as a batch file, you can use the /autosecure switch to regenerate the App Role password and store it in the database and encrypted on the client.

Before you use the /autosecure switch, you must configure the Init.ini file. This switch uses the following settings in the Init.ini file:

  • Path=
  • SqlDbName=
  • SqlRestorerLogin=
  • SqlServerName=
  • SqlStartupLogin=
  • WindowsAuthenticate=
  • SqlAdminPassword=
  • SqlAdminUsername=

    Note: These last two settings are only used if WindowsAuthenticate= 0

/fci

This switch enables Multi Subnet Failover for database connections to FCI clusters.

/company=

This switch automatically selects the company, so the company combo box does not appear when you log in. Use the company number as the parameter, for example, /company=COMP0001.

/excepthandler=

By default, this switch is true (1). If PayGlobal finds an error that threatens the database it informs you and then closes down to protect database integrity. If you set this switch to false (0), then PayGlobal will not shut down after informing you of the error.

Important: If you set this switch to false (0), then you risk corrupting your database.

/ini=

The path and name of the ini file that contains the settings required to start PayGlobal, for example, /ini=c:\payglobal\HR.ini

/initfile=

You can have multiple versions of the Init.ini file. If you want to create a test database, then rather than change your existing Init.ini file, you can create a new file for the test database.

For example, copy your existing Init.ini file and save it as Testinit.ini. Update the Testinit.ini file with the settings for your new test database. Use the following switch to create a blank database using the settings in the Testinit.ini file:

/initfile=Testinit.ini /autocreate.

Note: You can also use the /initfile= switch with the /autosecure switch.

/initsql

This switch opens the Company Setup form for a SQL Server type database

/nomutex

Adding this switch allows you to run multiple copies of HR.exe on one machine simultaneously.

This feature does not apply to ASP.

/pack

Important: You can only use the /pack switch with the /reindex switch

If you add these two switches, then PayGlobal will pack and reindex the database files whenever you log on.

/reindex

Add this switch to reindex the database files whenever you log on to PayGlobal.

/setpriority

If you are in an ASP environment, then this switch allows you to modify the priority setting with the Administration | Set Application Priority command

/unlockperm

If PayGlobal locks you out of the system, then adding this switch removes any permanent locks and allows you to log on.

/user=

This switch allows you to autoselect the login username, but the user must still enter their login password. The system uses the UserProfileCode as the parameter, for example, /user=John.

Users can overwrite this default login username, if necessary.

/encrypt

This switch enables the encryption of data transfered between the database and the desktop application. The database server must be correctly set up in order for encryption to work.

Previous page

Next page