Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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,173 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,650 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