[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

Command.com does not bring command shell in win2000

I have a problem with my command.com in win2000.
If i locate the file in explorer and run it a black window appears for a sec and dissapears.
cmd brings up the expected command shell, but it i type edit I will be returned to the shell
and no edit program appears. typing notepad filename will open the filename in notepad.
dos based self extracting files will not extract, just returns to the command prompt.
Trying to run the from explorer gives the same problem.
The problem may be with 16bit programs, I am unsure.

Thanks for any help you can provide.

0
Dark720
Asked:
Dark720
  • 3
1 Solution
 
nikkilockeCommented:
Hi Dark720,

Perhaps there is something wrong with one of your 16-bit subsystem startup files.

Have a look in your C:\WINNT\SYSTEM32 directory for the files config.nt and autoexec.nt.

The relevant lines in these (ignoreing the REMs) should probably be...

config.nt:
dos=high, umb
device=%SystemRoot%\system32\himem.sys
FILES=255

autoexec.nt:
lh %SystemRoot%\system32\mscdexnt.exe
lh %SystemRoot%\system32\redir
lh %SystemRoot%\system32\dosx

If there is other stuff in there, it may be causing your problem.

If you decide to change these files, REMEMBER TO TAKE A BACKUP FIRST!

Hope this helps,

Nikki
0
 
Dark720Author Commented:
config.nt
----------------------------
dos=high, umb
device=%SystemRoot%\system32\himem.sys
FILES=100

device=%SystemRoot%\system32\haspdos.sys




There is no autoexec.nt file in winnt\system32

0
 
Dark720Author Commented:
I expanded these three files from the origonal win2k cd and it fixed the problem.. thanks nikkilocke

0
 
Dark720Author Commented:
oops, the three files :)

expand CD-ROM Drive Letter:\i386\config.nt_ c:\windows\system32\config.nt
expand CD-ROM Drive Letter:\i386\autoexec.nt_ c:\windows\system32\autoexec.nt
expand CD-ROM Drive Letter:\i386\command.co_ c:\windows\system32\command.com
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now