Using Other Approaches to Pass Command-Line Arguments
SQR examines an argument file for a program name, username, or password if none is provided in the command line. The following command line omits the program name, username, and password:
sqr @argfile.datThe first two lines of the argument file for this code example contain the program name and the username and password:
myreport
sammy/baker
18
OH
...If you do not want to specify the report name, username, or password in the command line or in an argument file, use the question mark (?). SQR prompts the user to supply these. For example:
sqr myreport ? @argfile.datIn this example, the program prompts the user for the username and password instead of taking them from the first line in the argument file.
You can use more than one question mark on the command line, as shown in the following code example:
sqr ? ? @argfile.datIn this example, the program prompts the user for the program name and the username and password.
Note:
SQR for Microsoft Windows does not accept the SQR program name and database connectivity to be part of the argument file.