Ticket #44053

Add support for DIR, (DIR followed by a comma)

Open Date: 2022-03-08 04:26 Last Update: 2022-03-08 06:25

Reporter:
Owner:
Status:
Open [Owner assigned]
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

Displays ALL files in the current directory, including hidden and system files.

Undocumented, but often used by advanced users, when no file manager is at hand.

Ticket History (3/4 Histories)

2022-03-08 04:26 Updated by: bttr
  • New Ticket "Add support for DIR, (DIR followed by a comma)" created
2022-03-08 04:54 Updated by: bttr
  • Details Updated
2022-03-08 05:54 Updated by: mateuszviste
  • Details Updated
Comment

the comma apparently has a wider meaning in MS-DOS:

"DIR *.COM," displays all COM files, but NOT hidden ones.

"tree," works as "tree"

"tree,C:\" fails with an error "Too many parameters"

"copy autoexec.bat,backup.bat" copies autoexec.bat to backup.bat

Do you know what the exact rules are?

2022-03-08 06:25 Updated by: bttr
Comment

Reply To mateuszviste

the comma apparently has a wider meaning in MS-DOS: "DIR *.COM," displays all COM files, but NOT hidden ones.

"dir.com" does the same. Or "dir.bat" for all .bat files, ...

"tree," works as "tree" "tree,C:\" fails with an error "Too many parameters" "copy autoexec.bat,backup.bat" copies autoexec.bat to backup.bat

Um. Didn't know that. "copy autoexec.bat:backup.bat" works too.

There also is copy autoexec.bat+,, to update a file's timestamp (aka. poor man's touch).

It doesn't work in SvarCOM. SvarCOM tells me:

,, - File not found
1 file(s) copied
But the timestamp is not updated.

Do you know what the exact rules are?

No. (Most of)These are probably quirks. Some are documented in http://www.retroarchive.org/garbo/pc/batchutil/muf17.zip and / or http://www.retroarchive.org/garbo/pc/batchutil/batfaq23.zip

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login