You are currently offline, waiting for your internet to reconnect

You may receive the "Invalid command line" error message when you run the Access Conversion Scanning Tool at the command prompt

Support for Office 2003 has ended

Microsoft ended support for Office 2003 on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.


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 <ResultPath> /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 <ResultPath> /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 "Symptoms" 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 <ResultPath> /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 "Symptoms" section.

    Note The <ResultPath> 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 /?
STATUS
This behavior is by design.
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
REFERENCES
For additional information about how to use the Microsoft Access Conversion Toolkit Scanner utility and the errors that may occur when your Access databases are scanned by using the Access Conversion Scanning Tool, see the Microsoft Office Access 2003 Conversion Toolkit documentation.

To open the Microsoft Office Access 2003 Conversion Toolkit documentation, follow these steps:
  1. Click Start, point to Programs, and then point to Microsoft Office Tools.
  2. Point to Microsoft Access Conversion Toolkit, and then click Conversion Tool Documentation.
For additional information about how to use the Access Conversion Scanning Tool, click the following article number to view the article in the Microsoft Knowledge Base:
875289 Description of how to run the Access Conversion Scanning Tool at the command-line interface
ACC97 ACC ACC2002 ACC2003 ACCTOOL Access conversion scanner program scanner utility tool usage parameters
Properties

Article ID: 875290 - Last Review: 09/17/2011 09:12:00 - Revision: 2.0

  • Microsoft Office Access 2003
  • Microsoft Access 2002 Standard Edition
  • Microsoft Access 2000 Standard Edition
  • Microsoft Access 97 Standard Edition
  • Microsoft Access 95 Standard Edition
  • kbdatabase kbtshoot kberrmsg kbprb KB875290
Feedback