CMD

G

Guest

well cmd and tracert still bring up the error messege where in the event
viewer would it be and what is it called?
--
Excuse Me, You''re Stepping On My Eyeball.


Wesley Vogel said:
If SFC.EXE did anything it will be in the Event Viewer.

Open the Event Viewer...
Start | Run | Type: eventvwr | Click OK |
Click System | Look at any Windows File Protection
entries

If the Event Viewer does NOT open, try this...

Start | Run | Type: eventvwr.msc | Click OK |

You may have to reboot also. I do not know, but when in doubt, reboot.

Try typing: cmd into Start | Run again. Does it work?

Does tracert /? show tracert help or show an error?

Or there could be something wrong with PATHEXT.

Do other commands work from Start | Run without typing the Extensions?

Like typing control instead of control.exe, calc instead of calc.exe,
clipbrd instead of clipbrd.exe or cleanmgr instead of cleanmgr.exe?

If those commands did not work without typing the .exe part then something
may be wrong with your PATHEXT.

The environmental variable Pathext shows a list of file extensions that are
considered to be executable and regulates which extensions do not need to be
typed in a Command or Run window.

Open a command prompt, for you...
Start | Run | Type: cmd.exe | Click OK |
Type: set in the prompt and hit your Enter key |
Scroll down to PATHEXT

PATHEXT should look something like this...

PATHEXT=..COM;.EXE;.BAT;.CMD

If you installed the Windows Scripting Host PATHEXT should look something
like this...

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

This registry key is what holds the environment variables...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
Session Manager\Environment
Value Name: PATHEXT should show the same thing.

See this, it explains how to add items to PATHEXT...
Why do I have to type filename.bat, filename doesn't work
http://www.jsifaq.com/SUBD/TIP1700/rh1706.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
[I AM] Tainted said:
ok i did the scan took about 4 or 5 mins it finished and did nothing after
that am i supposed to do something now?
--
Excuse Me, You''re Stepping On My Eyeball.


Wesley Vogel said:
There could be several things wrong. There could be something wrong with
the file cmd.exe itself. Or there could be something wrong with PATHEXT.

Do other commands work from Start | Run without typing the Extensions?

Like typing control instead of control.exe, calc instead of calc.exe,
clipbrd instead of clipbrd.exe or cleanmgr instead of cleanmgr.exe?

If those commands work without typing the .exe part then something may be
wrong with cmd.exe.

System File Checker (sfc.exe) replaces screwed up system files.

Load your XP CD in your CD drive.

Start | Run | Type or paste: sfc /scannow | Click OK

If you have XP Home and it asks for your XP Pro CD, see this KB
article...

You may be prompted to insert a Windows XP Professional CD when you run
the System File Checker tool in Windows XP Home Edition
http://support.microsoft.com/kb/897128

If SFC.EXE did anything it will be in the Event Viewer.

Open the Event Viewer...
Start | Run | Type: eventvwr | Click OK |
Click System | Look at any Windows File Protection
entries

Explains a whole bunch about sfc.exe.
scannow sfc (sfc.exe)
http://www.updatexp.com/scannow-sfc.html

Description of Windows XP and Windows Server 2003 System File Checker
(Sfc.exe)
http://support.microsoft.com/?kbid=310747

------

If those commands did not work without typing the .exe part then
something may be wrong with your PATHEXT.

The environmental variable Pathext shows a list of file extensions that
are considered to be executable and regulates which extensions do not
need to be typed in a Command or Run window.

Open a command prompt, for you...
Start | Run | Type: cmd.exe | Click OK |
Type: set in the prompt and hit your Enter key |
Scroll down to PATHEXT

PATHEXT should look something like this...

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

This registry key is what holds the environment variables...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
Session Manager\Environment
Value Name: PATHEXT should show the same thing.

See this, it explains how to add items to PATHEXT...
Why do I have to type filename.bat, filename doesn't work
http://www.jsifaq.com/SUBD/TIP1700/rh1706.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In [I AM] Tainted <[email protected]> hunted and pecked:
ok iv done a search for all of the .com u listed but most importantly
there is no cmd.com but cmd.exe works
--
Excuse Me, You''''re Stepping On My Eyeball.


:

From
Sat, Jun 11 2005 3:06 pm

http://groups.google.com/group/micr...y+author:vogel&rnum=31&hl=en#877c65797df5e18d

"cmd.com" author:wesley author:vogel

http://groups.google.com/groups?q="...1&as_maxd=25&as_maxm=8&as_maxy=2006&safe=off&

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In Will Denny <[email protected]> hunted and pecked:
Hi

I've never come across cmd.com - only cmd.exe. Where did you hear
about cmd.com?

--


Will Denny
MS-MVP Windows Shell/User
Please reply to the News Groups

when i try and open the command prompt it says "cmd is not a valid
win32 aplication" does anyone know how to fix this
--
Excuse Me, You''re Stepping On My Eyeball.


Try this as well:

cmd.exe

If cmd.exe works but cmd does not, then you probably have a file
called cmd.com somewhere (in the path) which is being run instead.
You will really want to find it and delete it since it's most likely
to be bad.
 
M

Mark Dormer

Goto http://www.kellys-korner-xp.com/xp_tweaks.htm
Download the "EXE (lnk and regfile) Fix for Windows XP" on line 12
Merge it (double click it)

Does that fix the issue?

Regards
Mark Dormer


[I AM] Tainted said:
well cmd and tracert still bring up the error messege where in the event
viewer would it be and what is it called?
--
Excuse Me, You''re Stepping On My Eyeball.


Wesley Vogel said:
If SFC.EXE did anything it will be in the Event Viewer.

Open the Event Viewer...
Start | Run | Type: eventvwr | Click OK |
Click System | Look at any Windows File Protection
entries

If the Event Viewer does NOT open, try this...

Start | Run | Type: eventvwr.msc | Click OK |

You may have to reboot also. I do not know, but when in doubt, reboot.

Try typing: cmd into Start | Run again. Does it work?

Does tracert /? show tracert help or show an error?

Or there could be something wrong with PATHEXT.

Do other commands work from Start | Run without typing the Extensions?

Like typing control instead of control.exe, calc instead of calc.exe,
clipbrd instead of clipbrd.exe or cleanmgr instead of cleanmgr.exe?

If those commands did not work without typing the .exe part then
something
may be wrong with your PATHEXT.

The environmental variable Pathext shows a list of file extensions that
are
considered to be executable and regulates which extensions do not need to
be
typed in a Command or Run window.

Open a command prompt, for you...
Start | Run | Type: cmd.exe | Click OK |
Type: set in the prompt and hit your Enter key |
Scroll down to PATHEXT

PATHEXT should look something like this...

PATHEXT=..COM;.EXE;.BAT;.CMD

If you installed the Windows Scripting Host PATHEXT should look something
like this...

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

This registry key is what holds the environment variables...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
Session Manager\Environment
Value Name: PATHEXT should show the same thing.

See this, it explains how to add items to PATHEXT...
Why do I have to type filename.bat, filename doesn't work
http://www.jsifaq.com/SUBD/TIP1700/rh1706.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
[I AM] Tainted said:
ok i did the scan took about 4 or 5 mins it finished and did nothing
after
that am i supposed to do something now?
--
Excuse Me, You''re Stepping On My Eyeball.


:

There could be several things wrong. There could be something wrong
with
the file cmd.exe itself. Or there could be something wrong with
PATHEXT.

Do other commands work from Start | Run without typing the Extensions?

Like typing control instead of control.exe, calc instead of calc.exe,
clipbrd instead of clipbrd.exe or cleanmgr instead of cleanmgr.exe?

If those commands work without typing the .exe part then something may
be
wrong with cmd.exe.

System File Checker (sfc.exe) replaces screwed up system files.

Load your XP CD in your CD drive.

Start | Run | Type or paste: sfc /scannow | Click OK

If you have XP Home and it asks for your XP Pro CD, see this KB
article...

You may be prompted to insert a Windows XP Professional CD when you
run
the System File Checker tool in Windows XP Home Edition
http://support.microsoft.com/kb/897128

If SFC.EXE did anything it will be in the Event Viewer.

Open the Event Viewer...
Start | Run | Type: eventvwr | Click OK |
Click System | Look at any Windows File Protection
entries

Explains a whole bunch about sfc.exe.
scannow sfc (sfc.exe)
http://www.updatexp.com/scannow-sfc.html

Description of Windows XP and Windows Server 2003 System File Checker
(Sfc.exe)
http://support.microsoft.com/?kbid=310747

------

If those commands did not work without typing the .exe part then
something may be wrong with your PATHEXT.

The environmental variable Pathext shows a list of file extensions
that
are considered to be executable and regulates which extensions do not
need to be typed in a Command or Run window.

Open a command prompt, for you...
Start | Run | Type: cmd.exe | Click OK |
Type: set in the prompt and hit your Enter key |
Scroll down to PATHEXT

PATHEXT should look something like this...

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

This registry key is what holds the environment variables...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
Session Manager\Environment
Value Name: PATHEXT should show the same thing.

See this, it explains how to add items to PATHEXT...
Why do I have to type filename.bat, filename doesn't work
http://www.jsifaq.com/SUBD/TIP1700/rh1706.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In [I AM] Tainted <[email protected]> hunted and
pecked:
ok iv done a search for all of the .com u listed but most importantly
there is no cmd.com but cmd.exe works
--
Excuse Me, You''''re Stepping On My Eyeball.


:

From
Sat, Jun 11 2005 3:06 pm

http://groups.google.com/group/micr...y+author:vogel&rnum=31&hl=en#877c65797df5e18d

"cmd.com" author:wesley author:vogel

http://groups.google.com/groups?q="...1&as_maxd=25&as_maxm=8&as_maxy=2006&safe=off&

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In Will Denny <[email protected]> hunted and pecked:
Hi

I've never come across cmd.com - only cmd.exe. Where did you hear
about cmd.com?

--


Will Denny
MS-MVP Windows Shell/User
Please reply to the News Groups

when i try and open the command prompt it says "cmd is not a
valid
win32 aplication" does anyone know how to fix this
--
Excuse Me, You''re Stepping On My Eyeball.


Try this as well:

cmd.exe

If cmd.exe works but cmd does not, then you probably have a file
called cmd.com somewhere (in the path) which is being run instead.
You will really want to find it and delete it since it's most
likely
to be bad.
 
A

Alec S.

[I AM] Tainted said:
ok iv done a search for all of the .com u listed but most importantly there
is no cmd.com but cmd.exe works



Try this:

Open a command prompt and type this:

c:
cd c:\
dir cmd.* /s/a/p

There should only be two or three cmd.exe files: system32, dllcache\i386, and ServicePackFiles\i386. They should be 375,808 bytes.

(There may also be a cmd.lnk in Recent.)


What do you get?
 
W

Wesley Vogel

I just created a tracert.com in my System32 folder.

I opened a command prompt, typed: tracert /? and hit Enter.

This error message popped up...

---------------------------
C:\WINDOWS\system32\tracert.com
---------------------------
C:\WINDOWS\system32\tracert.com is not a valid Win32 application.

---------------------------
OK
---------------------------

I clicked OK and
Access is denied.
appeared in the command prompt.

Was tracert.com in your error message?

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
[I AM] Tainted said:
yes that brings up some options
--
Excuse Me, You''re Stepping On My Eyeball.


Wesley Vogel said:
What happens if you type: tracert.exe /? in a command prompt and hit
Enter?

Does that display tracert help or bring up an error?

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
[I AM] Tainted said:
also when im in comand prompt i tried to run tracert but that came up as
not a valid win32 aplication
--
Excuse Me, You''re Stepping On My Eyeball.


:

ok iv done a search for all of the .com u listed but most importantly
there is no cmd.com but cmd.exe works
--
Excuse Me, You''''re Stepping On My Eyeball.


:

From
Sat, Jun 11 2005 3:06 pm
http://groups.google.com/group/micr...y+author:vogel&rnum=31&hl=en#877c65797df5e18d
"cmd.com" author:wesley author:vogel
http://groups.google.com/groups?q="...en&lr=&as_drrb=q&as_mind=1&as_minm=1&as_miny=
1981&as_maxd=25&as_maxm=8&as_maxy=2006&safe=off&
 
W

Wesley Vogel

You forgot %windir%\system32\dllcache.

But, I agree, the OP still has a CMD.COM.

He probably still has NETSTAT.COM, PING.COM, REGEDIT.COM,
TASKKILL.COM,TASKLIST.COM and TRACERT.COM as well.

I created CMD.COM, NETSTAT.COM, PING.COM, TASKKILL.COM, TASKLIST.COM AND
TRACERT.COM in System32.

Start | Run | Type: cmd | Click OK

Got this error.

---------------------------
CMD
---------------------------
CMD is not a valid Win32 application.

---------------------------
OK
---------------------------

Clicked OK.

Start | Run | Type: cmd.exe | Click OK

Command prompt opened.

Got this error typing XXXX /? for every .com that I created.

C:\WINDOWS\system32\XXXX.COM is not a valid Win32 application.

Also got these errors after clicking OK to the above error messages for each
command...

-------------
C:\>CMD /?
Access is denied.

C:\>NETSTAT /?
Access is denied.

C:\>PING /?
Access is denied.

C:\>TASKKILL /?
Access is denied.

C:\>TASKLIST /?
Access is denied.

C:\>TRACERT /?
Access is denied.

C:\>
-------------

All of those commands with the .exe also typed worked correctly.
-----

From the "You forgot C:\WINDOWS\system32\dllcache." above.

By default, %systemroot%\system32\dllcache is the cache folder for Windows
File Protection (WFP). If WFP finds the file in the cache folder or if the
installation source is automatically located (I386 folder, if there is one),
WFP silently replaces the file and adds an entry in the Event Viewer.

Entry in my Event Viewer as a result of dragging clipbrd.exe from System32
to Desktop.

Event Source: Windows File Protection
Event ID: 64002
File replacement was attempted on the protected system file
c:\windows\system32\clipbrd.exe. This file was restored to the original
version to maintain system stability.

%systemroot%\system32\dllcache's only raison d'être is for WFP file
replacement. That's why dllcache is a HIDDEN folder and System32 isn't.
For the average Joe, if he or some program tries to replace a file in
System32, WFP replaces the file with one from dllcache.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Alec S. said:
[I AM] Tainted said:
ok iv done a search for all of the .com u listed but most importantly
there is no cmd.com but cmd.exe works



Try this:

Open a command prompt and type this:

c:
cd c:\
dir cmd.* /s/a/p

There should only be two or three cmd.exe files: system32, dllcache\i386,
and ServicePackFiles\i386. They should be 375,808 bytes.

(There may also be a cmd.lnk in Recent.)


What do you get?
 
A

Alec S.

Wesley Vogel said:
You forgot %windir%\system32\dllcache.


That's what I meant when I said dllcache\i386. I didn't have the dllcache folder on my system at the time so I couldn't doublecheck
to see if used had the i386 folder or not.

Either way, there should only be 3 cmd.exe and possibly a cmd.lnk. I don't know whether there are COM files or not, but there's
probably something messed up.

Check the path as well. I have had trouble with Regedit for the longest time because of the path. Regedit and Regedt32 were
different when run from the command prompt on my system so I had to build a wrapper for them. Recently I discovered that Regedit
and Regedt32 were actually the same irregardless of where they were run from; the problem was that I had a copy of Regedit from
Windows 9x in my DOS 7.1 folder which was getting run first when called from the command line while the one from XP was getting
called from the Run dialog. I renamed the 9x one and now "regedit" works properly from anywhere.
 
W

Wesley Vogel

That's what I meant when I said dllcache\i386.

I have no idea what dllcache\i386 might be.

The only I386 folders that I have are C:\WINDOWS\inf\i386 and
C:\WINDOWS\Driver Cache\i386. I have XP SP1 from an original install.

The ServicePackFiles folder only exists if you have upgraded to XP SP1 or XP
SP2 and they were not included in the original install and the SP1 or SP2
upgrade was done by downloading it from Microsoft. If the Service Pack is
installed by means of a CD-ROM or a distribution share, the ServicePackFiles
directory is not created. Same for ServicePackFiles\i386.

XP is installed from the i386 folder on the XP CD.

The I386 folder that I was referring to is the one that you copy from your
XP CD and locate here C:\I386.

See...
Why does this happen?
here...
scannow sfc (sfc.exe)
http://www.updatexp.com/scannow-sfc.html
Recently I discovered that Regedit and Regedt32 were actually the
same irregardless of where they were run from

In Windows XP, *ALL* Regedt32.exe does is *OPEN* Regedit.exe.

[[Regedt32.exe
In Windows XP and Windows Server 2003, Regedt32.exe is a small
program that just runs Regedit.exe. ]]
From...
Differences Between Regedit.exe and Regedt32.exe
http://support.microsoft.com/default.aspx?scid=kb;en-us;141377

[[NOTE: In Windows XP, Regedit.exe and Regedt32.exe have been integrated
into a single program that combines the features of the two registry editors
in Windows 2000. ]]
From...
"16 Bit MS-DOS Subsystem" Error Message When You Install a Program
http://support.microsoft.com/default.aspx?scid=kb;en-us;314452

Start | Run | Type: Regedt32 | Click OK |
Regedit.exe opens.
Leave it open.

Open the Task Manager, Ctrl + Shift + Esc.
Processes tab, right click Registry Editor and select Go To Process.
Processes tab opens with regedit.exe highlighted.
Now look for Regedt32.exe under the Processes tab, you won't find it.

In Windows XP, *ALL* Regedt32.exe does is *OPEN* Regedit.exe.

That's why Regedt32.exe is only 3,584 bytes and regedit.exe is 134,144
bytes.

Regedt32.exe is in System32 and Regedit.exe is not, it's in WINDOWS.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
A

Alec S.

Wesley Vogel said:
I have no idea what dllcache\i386 might be.

Like I said, I meant dllcache.
In Windows XP, *ALL* Regedt32.exe does is *OPEN* Regedit.exe.

Yes, I know. Like I said, running "regedit" from the command prompt caused regedit.exe from Win9x which I is in the DOS7.1 folder
which I have in the path to run, whereas running "regedit" from Run ran regedit.exe from system32. I fixed that a while back.
In Windows XP, *ALL* Regedt32.exe does is *OPEN* Regedit.exe.

That's why Regedt32.exe is only 3,584 bytes and regedit.exe is 134,144
bytes.

Regedt32.exe is in System32 and Regedit.exe is not, it's in WINDOWS.

Thanks abut I already know that. At one point I even hacked regedt32.exe to run a different app instead of regedit. ;)
 
W

Wesley Vogel

I wish you would quit snipping my posts.

MZ   ÿÿ ¸ @ Ð º ´
Í!¸LÍ!This program cannot be run in DOS mode.


KERNEL32.dll SHELL32.dll
regedit.exe
regedt32.pdb
ExitProcess g
GetModuleHandleA
GetStartupInfoA
GetCommandLineA
KERNEL32.dll
ShellExecuteA
SHELL32.dll
V S _ V E R S I O N _ I N F O
S t r i n g F i l e I n f o 0 4 0 9 0 4 B 0
C o m p a n y N a m e M i c r o s o f t C o r p o r a t i o n
F i l e D e s c r i p t i o n R e g i s t r y E d i t o r U t i l i
t y
F i l e V e r s i o n 5 . 1 . 2 6 0 0 . 0 ( x p c l i e n t . 0 1 0 8
1 7 - 1 1 4 8 )
I n t e r n a l N a m e r e g e d t 3 2 . e x e
L e g a l C o p y r i g h t © M i c r o s o f t C o r p o r a t i o n
.. A l l r i g h t s r e s e r v e d .
O r i g i n a l F i l e n a m e r e g e d t 3 2 . e x e
P r o d u c t N a m e M i c r o s o f t ® W i n d o w s ® O p e r a
t i n g S y s t e m : P r o d u c t V e r s i o n 5 . 1 . 2 6 0 0 .
0

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In Alec S. <@> hunted and pecked:
 
A

Alec S.

Wesley Vogel said:
I wish you would quit snipping my posts.

It's not good netiquette to full-quote when not needed, it's a waste of bandwidth which not everyone has in abundance. I use OE to
use newsgroups, and while it kind of sucks, it's more than adequate, and I've learned to accommodate it's "eccentricities" (well
most of them) and make it work.

Frankly I'm sick and tired of people nagging about things (like proper newsgroup etiquette) because there are those who insist that
they should be done one way, while others insist that they should be done another (usually opposite) way. I just do things the way
that make the most sense. In this case, full-quoting is unnecessary since the full message is available if someone needs to view
it. Same goes for forums and boards; I hate it when people full-quote (especially when they full-quote an extremely long post, and
particularly those who add their post AFTER a long quote). It's a huge pain in the butt to have to scroll for five minutes to get
to the next message.

MZ   ÿÿ ¸ @ Ð º ´
....

Did you just attach regedt32.exe?
 
W

Wesley Vogel

The trojan/virus/worm must have eaten the rest of the OP's operating system.
;-(

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
A

Alec S.

Wesley Vogel said:
The trojan/virus/worm must have eaten the rest of the OP's operating system.
;-(


A lot of posters don't return for responses to their questions. :( It's not really a surprise though, most of them are newbies,
especially the ones who post from the support-site. Then there's others who do get their responses but don't tell us whether the
suggestions helped or not.
 
G

Guest

if it wasnt for you guys then id still have the problem and my mate wouldnt
of fixed it the only reason he worked out why i couldnt see them is cause of
your posts something made it click for him and everyone i know was trying to
get me to just reformat and that would of taken days of pain and
redownloading patches so thanks for all the help guys
 
N

nexuxjs

hi,
try to check your os have folder option in the toolbar if not there
than your OS cannot run cmd whenever u try to run it will be restart
immidiatly so try to repair your window is only alter of your problem..
 
W

Wesley Vogel

Glad you got it fixed, however you did it. ;-)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
[I AM] Tainted said:
if it wasnt for you guys then id still have the problem and my mate
wouldnt of fixed it the only reason he worked out why i couldnt see them
is cause of your posts something made it click for him and everyone i
know was trying to get me to just reformat and that would of taken days
of pain and redownloading patches so thanks for all the help guys
--
Excuse Me, You''re Stepping On My Eyeball.


Alec S. said:
A lot of posters don't return for responses to their questions. :(
It's not really a surprise though, most of them are newbies, especially
the ones who post from the support-site. Then there's others who do get
their responses but don't tell us whether the suggestions helped or not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top