Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

DOS command


  • Please log in to reply

#1
Steven3

Steven3

    Member

  • Member
  • PipPip
  • 27 posts
I need some help with a set command. In the good old days of DOS I had a command in my autoexec. bat file that Alphabetized & placed directories before the files when you did a “dir” command. I remember it had a “g”, “n” & an “o” in it. Does any one know how to write this command?
  • 0

Advertisements


#2
peterm

peterm

    Trusted Tech

  • Technician
  • 3,387 posts
Hi Steven3
Don't know about writing in the autoexec
If you typein C:>dir/o then press enter this will do what you want and if you need to pause the screen then
C:>dir/o/p

Cheers
Peterm
  • 0

#3
peter99

peter99

    Member

  • Member
  • PipPipPip
  • 283 posts
http://www.computerh...m/dirhlp.htm#03

Microsoft DOS dir command
  • 0

#4
ZEUS_GB

ZEUS_GB

    There's no school like old school!

  • Retired Staff
  • 1,668 posts
You can do that using doskey.

For Windows 95/98:

Click start > click run > type sysedit and click ok > add doskey dir=dir /on $* to the autoexec.bat file > save it and restart your PC.

For DOS:

Type cd\ and press enter > type edit autoexec.bat and press enter > add doskey dir=dir /on $* > press alt+f > press x and press enter > reboot the PC.

You can add other switches if you wish e.g /w /p etc etc.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP