Command Prompt - Path messed up

cosmic50

New member
Local time
1:50 AM
Messages
7
I was editing the command prompt path and my command prompt stopped working. Here's what the path is:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShel l\v1.0\

I tried a dozen different paths after I accidentally deleted it when editing something into it. Nothing worked. any idea what's wrong?
 

My Computer

Computer Manufacturer/Model Number
HP
OS
Windows 7 Home Premium 64bit
CPU
Inteli3
Screen Resolution
1020x786
environmental variable %systemroot% should be set to c:\windows
cmd.exe is in c:\windows\system32 or %systemroot%\system32

also your "....powershel l..." should be "...powershell..."

Sugesstion: if you are going to alter system variables keep track of what (?&why?) you're changing them.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build
OS
Windows 7x64 Home Premium SP1
CPU
Intel i7 2600k
Motherboard
ASUS P8Z68 Deluxe
Memory
G.Skill Ripjaws (DDR3-1600) 2x4GB
Graphics Card(s)
Nvidia GeForce GTS 450; Intel HD Graphics 3000(GT2+)
Monitor(s) Displays
Dell Ultrasharp IPS panel U2311H, Samsung SyncMaster P2350
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro SSD 256GB, Samsung SSD 840 120GB, Seagates 1TB Barracuda ST31000528AS x2
PSU
Seasonic M12II 520W
Case
Lian Li Lancool PC-K60
Cooling
Case: 1x120mm, 3x140mm CPU: Hyper 212+
Keyboard
Logitech MK520 (wireless)
Mouse
Logitech MK520
Internet Speed
6-7 Mbps
Antivirus
Norton Security Premium, Malwarebytes on 2 (MSE on 3rd PC)
Browser
FireFox
Other Info
Audio: Logitech Z523 2.1
The command prompt still isn't working. I changed it to:

C:\Windows\system32;C:\Windows
 

My Computer

Computer Manufacturer/Model Number
HP
OS
Windows 7 Home Premium 64bit
CPU
Inteli3
Screen Resolution
1020x786
Go into the system32 folder, find the cmd.exe, right click on it and create a shortcut of that. You can also pin it to the start menu or taskbar.
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
If you wish to restore it to the default:

The default path is:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\System32\WindowsPowerShell\v1.0\

Note: (The Forum site adds the extra space in PowerShell above there is NO Space)

You can directly edit the Registry at:

HKLM\System\CurrentControlSet\Control\Session Manager\Environment\Path
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
Also for stuff like this it's a good idea to back up using something like ERUNT or a restore point, when everything is working. Save the variables to a file from the command prompt before making any changes. If you only have to fix one string then you can avoid the reboot of a ERDNT or restore point restore, by looking in the file to see exactly how the string is done.
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I set it to the default which was given above. Here is the current path:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\System32\WindowsPowerShell\v1.0\

Here is a screenshot of the command prompt:

cmdf.png


And yes, I photo-shopped out my user directory for privacy reasons. The black area should be \myAccountUsername
 

My Computer

Computer Manufacturer/Model Number
HP
OS
Windows 7 Home Premium 64bit
CPU
Inteli3
Screen Resolution
1020x786
You originally post said your command prompt wasn't working now it is using the same path you originally posted.
What's the problem?
Did the unix like "ls" ever work under your windows 7 command shell? - It doesn't under mine. I recall it working under XP.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build
OS
Windows 7x64 Home Premium SP1
CPU
Intel i7 2600k
Motherboard
ASUS P8Z68 Deluxe
Memory
G.Skill Ripjaws (DDR3-1600) 2x4GB
Graphics Card(s)
Nvidia GeForce GTS 450; Intel HD Graphics 3000(GT2+)
Monitor(s) Displays
Dell Ultrasharp IPS panel U2311H, Samsung SyncMaster P2350
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro SSD 256GB, Samsung SSD 840 120GB, Seagates 1TB Barracuda ST31000528AS x2
PSU
Seasonic M12II 520W
Case
Lian Li Lancool PC-K60
Cooling
Case: 1x120mm, 3x140mm CPU: Hyper 212+
Keyboard
Logitech MK520 (wireless)
Mouse
Logitech MK520
Internet Speed
6-7 Mbps
Antivirus
Norton Security Premium, Malwarebytes on 2 (MSE on 3rd PC)
Browser
FireFox
Other Info
Audio: Logitech Z523 2.1
It worked prior to when I accidentally deleted the path.

Hmm, I learned how to use the command prompt in linux and I was glad when the same commands worked. Anyway, I googled some of the window equivalents. The path was broken, yes, I just didn't know how to properly check if it was working. :p I wonder if it's possible to get the linux commands working again. :mad:
 

My Computer

Computer Manufacturer/Model Number
HP
OS
Windows 7 Home Premium 64bit
CPU
Inteli3
Screen Resolution
1020x786
I'd try with this:

GnuWin32 Packages

There should be setup info with each package.
I used to run some of the linux command ports. Many of the stand-alone exes will work from a regular command prompt but a lot of the scripting and other gizmos require running bash or another shell. You probably need to set up the bin folder in your path etc..

edit: ok I think I misread what mjf meant. He's saying even set up properly the linux stuff may not work in Vista or later... nevermind. :)
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I'd try with this:

GnuWin32 Packages

There should be setup info with each package.
I used to run some of the linux command ports. Many of the stand-alone exes will work from a regular command prompt but a lot of the scripting and other gizmos require running bash or another shell. You probably need to set up the bin folder in your path etc..

edit: ok I think I misread what mjf meant. He's saying even set up properly the linux stuff may not work in Vista or later... nevermind. :)
Not quite, If linux commands are important to the OP give MilesAhead's suggestions a go. For me personally they aren't that important in the Windows command shell.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build
OS
Windows 7x64 Home Premium SP1
CPU
Intel i7 2600k
Motherboard
ASUS P8Z68 Deluxe
Memory
G.Skill Ripjaws (DDR3-1600) 2x4GB
Graphics Card(s)
Nvidia GeForce GTS 450; Intel HD Graphics 3000(GT2+)
Monitor(s) Displays
Dell Ultrasharp IPS panel U2311H, Samsung SyncMaster P2350
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro SSD 256GB, Samsung SSD 840 120GB, Seagates 1TB Barracuda ST31000528AS x2
PSU
Seasonic M12II 520W
Case
Lian Li Lancool PC-K60
Cooling
Case: 1x120mm, 3x140mm CPU: Hyper 212+
Keyboard
Logitech MK520 (wireless)
Mouse
Logitech MK520
Internet Speed
6-7 Mbps
Antivirus
Norton Security Premium, Malwarebytes on 2 (MSE on 3rd PC)
Browser
FireFox
Other Info
Audio: Logitech Z523 2.1
I set it to the default which was given above. Here is the current path:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\System32\WindowsPowerShell\v1.0\

Here is a screenshot of the command prompt:

cmdf.png


And yes, I photo-shopped out my user directory for privacy reasons. The black area should be \myAccountUsername

In the command prompt window type: set <enter> and post it here.

The “pwd” and the “ls” are Unix commands and are not part of Windows 7. You may have installed an IX command package and that added the software’s folder to your path.

Have you installed some IX package? If so what is the path to that software?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
I never intentionally installed something to do that. the only thing I can think of is virtualbox, which I ran ubuntu out of.
 

My Computer

Computer Manufacturer/Model Number
HP
OS
Windows 7 Home Premium 64bit
CPU
Inteli3
Screen Resolution
1020x786
I never intentionally installed something to do that. the only thing I can think of is virtualbox, which I ran ubuntu out of.

So you put Ubuntu in a VM, then later removed Ubuntu, the VM or both?
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top