SYMPTOMS
When you try to run an MS-DOS command from a command prompt at the root folder of your C drive, you may receive one of the following error messages:
Incorrect Dos Version
-or-
Error Starting Program. A required .DLL file, ULIB.DLL, was not found.
CAUSE
This behavior can occur if there is an MS-DOS version of the command you are trying to run in the root folder of your C drive. When you try to run an MS-DOS command from a command prompt at the root folder of your C drive, Windows looks for the command in the root folder before it looks for the command in your path.
RESOLUTION
To resolve this issue, rename the MS-DOS command in the root folder of your C drive. To do so, use the following steps:
Click Start, point to Find, and then click Files Or Folders.
In the Named box, type the name of the MS-DOS command you want to run, and then click Find Now.
Right-click the file (after you verify it is in the root folder of your C drive), and then click Rename.
Rename the file to a .old extension, and then press ENTER.
In addition to xcopy being in the root directory there's also the possibility of having a DOS directory in your path before the windows directory. When a command is run the OS checks to see if it is an internal command native to the command processor. Such commands are copy, md, cd, del etc. If not then it checks the current directory. Then it starts searching the path. If;
path=c:\c:\dos;\c:\windows;c:\windows\command
The first instance of an occurrence will execute. Thus if you have two copies of xcopy, one in the DOS dir. and one in \windows\command dir the order of search will take it to the DOS dir first because its in the path before the windows\command. Don Swayser
swayser@optonline.net
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.