Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Command Prompt not recognizing some commands

Posted on 2009-07-06
5
Medium Priority
?
478 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 43

Expert Comment

by:Steve Knight
ID: 24783205
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
ID: 24783277
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 2000 total points
ID: 24783334
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
ID: 24783340
yes systemroot=c:\windows
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 2000 total points
ID: 24783452
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

ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
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…

719 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