Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Help with a DOS command  (Read 2051 times)

0 Members and 1 Guest are viewing this topic.

mrsumo

  • Guest
Help with a DOS command
« on: November 20, 2006, 02:28:17 PM »
I have a custom built computer whose HD crashed.  I am reinstalling everything on the new HD but forgot how to enter a command in the autoexec.bat file.

I am looking of a SET DIRCMD command which would alphabetize the directories & root directory with all directories first & then the files.  I remember there was a “G” in this command.

Does anyone know the command I am looking for?

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: Help with a DOS command
« Reply #1 on: November 20, 2006, 03:20:17 PM »
The G sortorder was used in tandem with the /o switch to group directories first. Something like this:

set dircmd = /o:g

Run dir /? at the command prompt to see all the switches and options that are available.

Good luck.  8-)
« Last Edit: November 20, 2006, 03:20:55 PM by Sidewinder »
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

mrsumo

  • Guest
Re: Help with a DOS command
« Reply #2 on: November 20, 2006, 06:13:20 PM »
Would the following be the proper syntax including spacing:

set dircmd= /o:g,n

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: Help with a DOS command
« Reply #3 on: November 20, 2006, 06:35:03 PM »
Without an explanation of what your trying to accomplish, this is only a guess:

set dircmd=/o:gn

 8-)
« Last Edit: November 20, 2006, 06:38:34 PM by Sidewinder »
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein