Solved

Command Prompt not recognizing some commands

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
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.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

751 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