Dumb Question ...

Feb 21, 2015
6
0
OK, I'm new to this program and I'm working my way through the manual. But in trying something out I seem to have hit a silly. Let's say I'm in C:\Users\John\, and I give a 'Dir' command. A list is generated, but it's clear lots of files/folders/junctions are not being displayed. I want to effectively issue a Dir <everything>, but can't find an easy syntax. Dir /a: works, presumably because no item can have all the attributes set (if the attribute set is to be valid).

But is there a better way to issue a dir <everything> command?

Thanks,

JB
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,461
88
Albuquerque, NM
prospero.unm.edu
You've got it. If you're not listing any attributes, you can omit the colon.

If you do this a lot, you can create an alias:

Code:
alias d=dir /a

Or even:
Code:
alias @@F5=dir /a
 
Nov 2, 2009
294
6
Chile
www.farah.cl
But is there a better way to issue a dir <everything> command?

This has been my dir alias since the days of 4DOS (20+ years ago):

alias @@f5=@dir /J/H/Ou/A

(although I added the /T switch a couple months ago)

You may want to define these aliases in your alias file:

@@f5=@dir /J/H/Ou/T/A
@@f6=@dir /J/H/Od/T/A
@@f7=@dir /J/H/Oe/T/A
@@ctrl-f5=@dir /J/H/P/Ou/T/A
@@ctrl-f6=@dir /J/H/P/Od/T/A
@@ctrl-f7=@dir /J/H/P/Oe/T/A
@shift-f5=dir /J/H/Ou/T/A
@shift-f6=dir /J/H/Od/T/A
@shift-f7=dir /J/H/Oe/T/A


F5: unsorted dir; F6: sorted by date; F7: sorted by extension.
Ctrl "adds" the pause switch; Shift allows entering extra parameters.
 
Feb 21, 2015
6
0
This has been my dir alias since the days of 4DOS (20+ years ago):

alias @@f5=@dir /J/H/Ou/A

(although I added the /T switch a couple months ago)

You may want to define these aliases in your alias file:

@@f5=@dir /J/H/Ou/T/A
@@f6=@dir /J/H/Od/T/A
@@f7=@dir /J/H/Oe/T/A
@@ctrl-f5=@dir /J/H/P/Ou/T/A
@@ctrl-f6=@dir /J/H/P/Od/T/A
@@ctrl-f7=@dir /J/H/P/Oe/T/A
@shift-f5=dir /J/H/Ou/T/A
@shift-f6=dir /J/H/Od/T/A
@shift-f7=dir /J/H/Oe/T/A


F5: unsorted dir; F6: sorted by date; F7: sorted by extension.
Ctrl "adds" the pause switch; Shift allows entering extra parameters.
Thanks - I'll definitely have a play!
 
Similar threads
Thread starter Title Forum Replies Date
C Dumb titleprompt question Support 4
C forum Posting Question... Support 3
C question re: Move Support 3
S How to? Upgrade Question: What supporting documentation is required at time of purchase? Support 2
Peter Murschall Documentation Question to %@PSHELL Support 4
Fross Tab Question Support 6
Fross Quick Function Question Support 17
Dick Johnson Question about the Touch command Support 0
rps Documentation "Copy+Paste+run" question Support 2
vefatica SFTP question Support 17
vefatica Question about IPWorks Support 0
C How to? SHORTCUT question..... Support 6
vefatica TPIPE, crash and question Support 1
C Question / Suggestion Support 1
MickeyF Another TPIPE question Support 6
vefatica Another @EVERYTHING question Support 4
mikea How to? %@everything[] question Support 10
A License Question for Single User Support 5
Jay Sage Help Correction (and Related Question) Support 0
S Elapsed time in TCC prompt question Support 0
H command line parsing question Support 5
C Forum question Support 2
B Newbie here, I have a question. Support 4
Timothy Byrd Updating from TC 9 to TC 17 - TCTOOLBAR question Support 2
M A possibly stupid question about the "del" command... Support 7
M A just out of curiosity question re @DiskTotal Support 4
Fross Status Bar Time Question Support 1
A Stupid, obvious question - launch a BAT with TC Support 10
C How to? GLOBAL question Support 5
vefatica OT: VisualStudio question Support 1
vefatica Wildcard question Support 4
Dan Glynhampton v15 installer question Support 2
C Move question with Encrypted file... Support 6
M Maybe Maybe I'm being stupid (again), but a simple question... Support 4
C Message Board question Support 1
James Miller How to? filename completion question Support 1
C coding question Support 3
M A just-out-of-curiosity question because it's ... Support 6
Frank question to FOLDERMONITOR Support 14
M Upgrade Question Support 2
S option /u question Support 19
M How to? A probably stupid question re "@Files" and Include Lists... Support 2
M Just an out-of-curiosity question re. "Do ... /P ..." Support 31
M How to? An admittedly somewhat silly question regarding elevation... Support 2
M Just an out-of-curiosity question the List command vs. the @Lines function... Support 13
M PDir format question... Support 3
M A question about file compression that is just out of curiosity... Support 2
M How to? A very simple question re. the current line number in a batch file... Support 2
M A purely out-of-curiosity question about @DriveType and @DriveTypeEx Support 2
vefatica SET question Support 16

Similar threads