Solved

Command Prompt not recognizing some commands

Posted on 2009-07-06
5
429 Views
Last Modified: 2012-06-27
Hello,

I've been playing around with VDMSound (now uninstalled) and DOSBox (also uninstalled) this weekend trying to get an old DOS program working.

This morning I'm back to work and the command line to not working correctly. Things like Path and DIR seem to work ok however so far "Net use" and "Ping" are not working! ARGH!

What have I done!

The only changes to the laptop over the weekend are DOSBox 0.73 and VDMSound 2.1.0. VMDSound I've worked with for years and never had any issues however DOSBox is new to me. I'm thinking its done something but what?

Any ideas..... I need this ASAP as alot of my work is though the command line.
0
Comment
Question by:Ace_Crosley_79
  • 3
  • 2
5 Comments
 
LVL 43

Expert Comment

by:Steve Knight
Comment Utility
Most likely, sounds like your path has been messed up?  If you just type PATH at the CMD.EXE prompt does it include c:\windows\system32;c:\windows etc. (or wherever your windows dir is).

If you open a cmd.exe prompt and do
C:
cd \windows\system32
net use

If your path is hosed easy enough to fix,

Properies of my computer
Advanced
Environment variables
The path one by default should include these at least:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

Steve
0
 

Author Comment

by:Ace_Crosley_79
Comment Utility
OK this is wired! %systemroot%system32 is in the paths however so is everything you would expect! When in c:\windows\system32 net use is working. Drop out (even though its in the paths) and Net use stops working!

I can't understand when system32 is in the path and commands still don't work?

I'm giving this 2 more hours before I ghost this laptop....
Path.JPG
0
 
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 500 total points
Comment Utility
Is Systemroot showing in your environment as those should be replaced by the time you see them in a path or set command.  Type

SET

to see them all.

Steve
0
 

Author Comment

by:Ace_Crosley_79
Comment Utility
yes systemroot=c:\windows
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 500 total points
Comment Utility
Interesting.  could you dump out set to a text file for me... set > set.txt

As I said typing SET should show the variables as the full path, not %systemroot% etc. as they should have been expanded by then.

The length should be OK as you can have upto nearly 1Kb and that is about 1/4 of that... maybe worth just editing the path in the GUI in case some dodgy chars or something have got in there...

It SHOULD show in the system variables part as the full "c:\windows\system32" etc. and when you click Edit it can show as "%Systemroot%" etc.  Sounds like somehow the %Systemroot% bit has got saved in there wrongly.... perhaps a dodgy uninstaller there messed it up.

Steve
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now