dir /w Displays a list of files and subdirectories in a directory. the /w
switch uses wide list format.
This should work in both cmd.exe and command.com.
Switches may be preset in the DIRCMD environment variable. Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
dir /? will display help for the dir command.
[[Presetting dir parameters
You can preset dir parameters by including set with the DIRCMD environment
variable in your Autoexec.nt file. You can use any valid combination of dir
parameters with set dircmd, including the location and name of a file.
For example, to use the DIRCMD environment variable to set the wide display
format (that is, /w) as the default format, type the following command in
your Autoexec.nt file:
set dircmd=/w
For a single use of the dir command, you can override a parameter by using
the DIRCMD environment variable. To do so, type the parameter that you want
to override at the dir command prompt, preceding the parameter with a minus
sign. For example:
dir /-w
To change the DIRCMD default settings, type:
set=NewParameter
The new default settings are effective for all subsequent dir commands until
you use set dircmd again or until you restart your computer.
To clear all default settings, type:
set dircmd=
To view the current settings of the DIRCMD environment variable, type:
set
Set displays a list of environment variables and their settings. ]]
From ...
Command-line referrence in XP HELP
and
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dir.mspx
Command-line reference A-Z
Start | Run | Copy and paste the following line:
%windir%\hh.exe ms-its:c:\Windows\Help\ntcmds.chm::/ntcmds.htm
Click OK.
I have a shortcut to
%windir%\hh.exe ms-its:c:\Windows\Help\ntcmds.chm::/ntcmds.htm
on my Start Menu.
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In