Microsoft KB Archive/875290

= You may receive the &quot;Invalid command line&quot; error message when you run the Access Conversion Scanning Tool at the command prompt =

Article ID: 875290

Article Last Modified on 7/28/2004

-

APPLIES TO


 * Microsoft Office Access 2003
 * Microsoft Access 2002 Standard Edition
 * Microsoft Access 2000 Standard Edition
 * Microsoft Access 97 Standard Edition
 * Microsoft Access 95 Standard Edition

-



This article applies only to a Microsoft Access database (.mdb).

Moderate: Requires basic macro, coding, and interoperability skills.



SYMPTOMS
When you try to run the Access Conversion Scanning Tool, also known as Adscanner.exe, at the command prompt, you may receive the following error message:

Invalid command line.

Note The Access Conversion Scanning Tool is included with the Microsoft Office Access 2003 Conversion Toolkit.



CAUSE
This problem occurs if the syntax of the command that you use to run the Adscanner.exe program is not correct. The following list describes the three main causes of this problem:   At the command prompt, you set the value of a command-line argument to an unsupported setting in the syntax of the command that you use to run the Adscanner.exe program. The following example shows an unsupported setting for the value of a command-line argument: ADScanner  /acc:off The only supported setting for the /acc command-line argument is on. Instead of specifying off to prevent the scanning tool from collecting the Access properties, you do not use /acc at the command-line.   At the command prompt, you specified a command-line argument more than one time in the syntax of the command that you use to run the Adscanner.exe program. The following example shows a command-line argument that is specified more than one time: ADScanner  /acc:on /acc:on In the previous command-line argument, you specified the /acc command-line argument two times in the syntax of the command. Therefore, you receive the error message that is mentioned in the &quot;Symptoms&quot; section.   At the command prompt, you specified a command-line argument that is not valid in the syntax of the command that you use to run the Adscanner.exe program. The following example shows a command-line argument that is not valid in the syntax of the command: ADScanner  /access:on In the previous command-line argument, you specified the /access command-line argument that is not valid in the syntax of the command. Therefore, you receive the error message that is mentioned in the &quot;Symptoms&quot; section.

Note The  placeholder is the placeholder for the full path of the folder that stores the results of the scans. 



RESOLUTION
To resolve this problem, you must make sure that the command-line arguments are valid when you run the Adscanner.exe program at the command prompt. Before you run the Adscanner.exe program, verify that the syntax of the command that you use to run the Adscanner.exe program is correct. To verify the syntax of the command, do the following:
 * Make sure that you have not specified the command-line argument explicitly if you want to use the default setting for a command-line argument.
 * Make sure that you have not duplicated any command-line arguments.
 * Make sure that you have not used any arguments that are not valid.

For additional information about the syntax of the Adscanner.exe program, run the following command at the command prompt: ADScanner /?

<div class="status_section">

STATUS
This behavior is by design.

<div class="moreinformation_section">

MORE INFORMATION
When you use the Access Conversion Scanning Tool that is included with the Microsoft Office Access 2003 Conversion Toolkit, you can collect the information about your Access database to make critical decisions. You make these critical decisions when you plan to upgrade your Access databases. You can start the Access Conversion Scanning Tool by running the Adscanner.exe program at the command prompt.

Note By default, the Adscanner.exe file is located in the following folder:

<Installation Drive>:\Program Files\Microsoft Office\Conversion Toolkit

<div class="references_section">