Novell is now a part of Micro Focus

I am using the MetroWerks CodeWarrior command line...

Articles and Tips: qna

18 Oct 2000


Q.

I am using the MetroWerks CodeWarrior command line tools in a DOS/Windows or a pure DOS environment. Is there a way I can get CodeWarrior to recognize directory names that are longer than eight characters?

A.

DOS does not view the file system from the same perspective as Windows does. Many of the subdirectories created during the CodeWarrior installation (in particular the Metrowerks and CodeWarrior directories) are more than eight characters long. The SET PATH statements that are created for your development environment must reflect this.

For example, the following path environment is not visible in DOS:

set TOOL_PATH=c:\Program Files\Metrowerks\CodeWarrior\Tools\Command Line Tools\

The following example would be visible to DOS:

set  TOOL_PATH=c:\Progra~1\Metrow~1\Codewa~1\Tools\Comman~1\

Even a simple command like "%TOOL_PATH%mwccnlm -help" would fail if your DOS environment looks like the first example, but it will work with the second example.

Failure to verify how paths are set up in environment variables will result in a non-descriptive error such as "Bad Command or File Name," which makes it difficult to track down the actual problem.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates