Archived from groups: microsoft.public.windowsxp.help_and_support (
More info?)
Hi Arron,
Pathext & Path
The environmental variable Pathext controls which extensions do not need to
be typed in a Command Prompt or Run. The Path environmental variable and a
registry entry, that I can't remember now, control what paths do not have to
be typed.
Pathext shows a list of file extensions that are considered to be
executable.
Set displays the current environment variables.
-----
Open a command prompt and type:
set
Hit Enter.
Look for PATHEXT.
Should look something like this ...
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
You may not have all of those. But, I'm betting that .EXE is missing.
COM extension is short for Command.
EXE is short for Executable.
BAT is short for Batch.
CMD Windows NT Command Script.
VBS VBScript Script File. Visual Basic.
VBE VBScript Encoded Script File.
JS JScript Script File.
JSE JScript Encoded Script File
WSF Windows Script File.
WSH Windows Script Host Settings File.
Path and set are internal commands and do not have an extension.
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In news:843D4C93-5574-40A4-853C-410E6C29145F@microsoft.com,
badboy <smackitup_10(at)hotmail(dot)com> hunted and pecked:
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\Documents and Settings\Arron>%windir%\system32\ping.exe
>
> Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
> [-r count] [-s count] [[-j host-list] | [-k host-list]]
> [-w timeout] target_name
>
> Options:
> -t Ping the specified host until stopped.
> To see statistics and continue - type Control-Break;
> To stop - type Control-C.
> -a Resolve addresses to hostnames.
> -n count Number of echo requests to send.
> -l size Send buffer size.
> -f Set Don't Fragment flag in packet.
> -i TTL Time To Live.
> -v TOS Type Of Service.
> -r count Record route for count hops.
> -s count Timestamp for count hops.
> -j host-list Loose source route along host-list.
> -k host-list Strict source route along host-list.
> -w timeout Timeout in milliseconds to wait for each reply.
>
>
> C:\Documents and Settings\Arron>path
>
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Progra
m
> Fi les\Microsoft SQL Server\90\Tools\Binn\;C:\Program Files\Common
> Files\Autodesk S
> hared\;C:\Program Files\backburner 2\;C:\Program Files\NVIDIA
> Corporation\NVIDIA
> DDS Utilities;C:\EUPHORIA\BIN;
>
> C:\Documents and Settings\Arron>
>
> It seems to work when I do that but if i type ping into command prompt it
> just says it cant find it.
>
> Thanks for help.
>
> "badboy" wrote:
>
>> Nope I even downloaded the program and it said everything was okay.
>>
>> "Wesley Vogel" wrote:
>>
>>> Check your PATH.
>>>
>>> Why don't my commands work?
>>>
http://internet.cybermesa.com/~bstewart/cmdprompt.html#6
>>>
>>> --
>>> Hope this helps. Let us know.
>>>
>>> Wes
>>> MS-MVP Windows Shell/User
>>>
>>> In news:BB2B1879-4E6C-4420-95E3-FB9FB8B30DA6@microsoft.com,
>>> badboy <badboy@discussions.microsoft.com> hunted and pecked:
>>>> When ever I type in dir or cd or ping or anything like that into
>>>> command prompt I get a error saying the command dosent exist but it
>>>> dose i was using them 3 mounths ago.
>>>>
>>>> Please Help