How do you set the dircmd environmental variable in XP?

  • Thread starter Thread starter John Corliss
  • Start date Start date
J

John Corliss

Guest
I've carefully followed the directions on this page:

http://technet2.microsoft.com/windo...4153-4f8c-873e-58d91aedc1ea1033.mspx?mfr=true

and have added the following to my c:\windows\system32\autoexec.nt file:

SET dircmd=/a/o:gn/p

NOTE: there is NO "REM" before this line, so it should execute.

Yet when I reboot the computer, go to a command line screen and run
"DIR" in any large folder, the subfolders and files are still displayed
out of order and zoom by without pausing.

What am I doing wrong?

I have to ask, why isn't this the way files are displayed at the command
prompt anyway?

Who in their right mind would want the contents of a folder to scroll by
so fast that they can't even see them?

Who would want a list of files to be out of alphabetical order by default?

After all, in Windows Explorer, folders and files are displayed in
alphabetical order and you are allowed to scroll up and down the list.
The least one could expect would be for files to be displayed as close
to this as possible in a command prompt window.

If some security update has made using the dircmd environmental variable
unavailable, then things are getting out of hand.

Please note that my main question here is: what am I doing wrong in my
attempts to set the dirmd variable in autoexec.nt?

TIA

--
John Corliss
 
Re: How do you set the dircmd environmental variable in XP?

"John Corliss" <jcorliss@fake.invalid> wrote:

> I've carefully followed the directions on this page:
>
> http://technet2.microsoft.com/windo...4153-4f8c-873e-58d91aedc1ea1033.mspx?mfr=true
>
> and have added the following to my c:\windows\system32\autoexec.nt file:
>
> SET dircmd=/a/o:gn/p
>
> NOTE: there is NO "REM" before this line, so it should execute.
>
> Yet when I reboot the computer, go to a command line screen and run
> "DIR" in any large folder, the subfolders and files are still
> displayed out of order and zoom by without pausing.
>
> What am I doing wrong?


This may or may not be caused by the wrong syntax since you failed to
insert a space character between the switches. Anyway, remove that line.

Control Panel > System > Advanced tab > Environment Variables. Create
the system variable "DIRCMD" and assign the value /a /c /p /x /o:gen
(example).

--
d-d
 
Re: How do you set the dircmd environmental variable in XP?

Detlev Dreyer wrote:
> "John Corliss" <jcorliss@fake.invalid> wrote:
>
>> I've carefully followed the directions on this page:
>>
>> http://technet2.microsoft.com/windo...4153-4f8c-873e-58d91aedc1ea1033.mspx?mfr=true
>>
>> and have added the following to my c:\windows\system32\autoexec.nt file:
>>
>> SET dircmd=/a/o:gn/p
>>
>> NOTE: there is NO "REM" before this line, so it should execute.
>>
>> Yet when I reboot the computer, go to a command line screen and run
>> "DIR" in any large folder, the subfolders and files are still
>> displayed out of order and zoom by without pausing.
>>
>> What am I doing wrong?

>
> This may or may not be caused by the wrong syntax since you failed to
> insert a space character between the switches. Anyway, remove that line.


I agree. However, the page at the link above showed examples of using
the "dir" command with parameters which weren't separated by commas or
spaces, only forward slashes. The values are supposed to be unseparated
FWIU.

> Control Panel > System > Advanced tab > Environment Variables. Create
> the system variable "DIRCMD" and assign the value /a /c /p /x /o:gen
> (example).


Wow is that buried! Still, I should have caught that one since I was
looking on that tab at something else just a couple of days ago.

Many thanks!

--
John Corliss
 
Re: How do you set the dircmd environmental variable in XP?

John Corliss wrote:
> Detlev Dreyer wrote:
>> "John Corliss" <jcorliss@fake.invalid> wrote:
>>
>>> I've carefully followed the directions on this page:
>>>
>>> http://technet2.microsoft.com/windo...4153-4f8c-873e-58d91aedc1ea1033.mspx?mfr=true
>>>
>>>
>>> and have added the following to my c:\windows\system32\autoexec.nt file:
>>>
>>> SET dircmd=/a/o:gn/p
>>>
>>> NOTE: there is NO "REM" before this line, so it should execute.
>>>
>>> Yet when I reboot the computer, go to a command line screen and run
>>> "DIR" in any large folder, the subfolders and files are still
>>> displayed out of order and zoom by without pausing.
>>>
>>> What am I doing wrong?

>>
>> This may or may not be caused by the wrong syntax since you failed to
>> insert a space character between the switches. Anyway, remove that line.

>
> I agree. However, the page at the link above showed examples of using
> the "dir" command with parameters which weren't separated by commas or
> spaces, only forward slashes. The values are supposed to be unseparated
> FWIU.
>
>> Control Panel > System > Advanced tab > Environment Variables. Create
>> the system variable "DIRCMD" and assign the value /a /c /p /x /o:gen
>> (example).

>
> Wow is that buried! Still, I should have caught that one since I was
> looking on that tab at something else just a couple of days ago.
>
> Many thanks!


That did the trick all right. Thanks again, Detlev!

--
John Corliss
 
Re: How do you set the dircmd environmental variable in XP?

"John Corliss" <jcorliss@fake.invalid> wrote:

> That did the trick all right. Thanks again, Detlev!


You're most welcome, John!

--
d-d
 
Back
Top