Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 02-03-2008, 05:10 AM
John Corliss
Newsgroup Contributor
 
Posts: n/a
How do you set the dircmd environmental variable in XP?

I've carefully followed the directions on this page:

http://technet2.microsoft.com/window....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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 02-03-2008, 05:10 AM
  #2 (permalink)  
Old 02-03-2008, 05:30 AM
Detlev Dreyer
Newsgroup Contributor
 
Posts: n/a
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/window....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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 02-03-2008, 06:30 AM
John Corliss
Newsgroup Contributor
 
Posts: n/a
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/window....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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 02-03-2008, 06:51 AM
John Corliss
Newsgroup Contributor
 
Posts: n/a
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/window....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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 02-03-2008, 07:10 AM
Detlev Dreyer
Newsgroup Contributor
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Environmental Compliance Specialist TPC Tablet PC Jobs 0 01-10-2008 01:40 PM
Chemical/Environmental Supervisor TPC Tablet PC Jobs 0 01-07-2008 03:40 PM
Air Environmental Engineers TPC Tablet PC Jobs 0 12-07-2007 05:50 AM
Environmental Health & Safety Specialist TPC Tablet PC Jobs 0 10-24-2007 11:00 PM
Specify environmental variable when starting command prompt? Don Culp Windows XP 1 07-19-2007 04:40 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 06:33 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0