Solved

Command Prompt not recognizing some commands

Posted on 2009-07-06
5
472 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 500 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 500 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

626 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