|
| | |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
| | LinkBack | Thread Tools |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| 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? |