VOGONS


The DIR /s command

Topic actions

First post, by Teppic

User metadata
Rank Newbie
Rank
Newbie

I really miss one important DIR command in DOSBox, and it's the dir /s command, to show all the files in current folder and sub folders.

Very useful when you want to search for something (ex. "dir *.pcx/s , or dir file* /s) or just see how much space something takes.

The /s command in DOSBox doesn't say illegal switch, but it doesn't work like I described it either.

Is there some reason this command isn't in the current DOSBox, or is there something I missing?

Reply 2 of 8, by Teppic

User metadata
Rank Newbie
Rank
Newbie
DosFreak wrote:

1. It's not needed for games.

I see.

DosFreak wrote:

2. Host operating system is better for such a task.

I disagree :) XP's search system is extremely tedious, and it's much quicker to do a search within DOSBox rather than exit to find the right folder and do a search.

DosFreak wrote:

3. No one has provided a patch for this functionality.

I hope someone will. DOSBox feels incomplete without it.

Reply 3 of 8, by ADDiCT

User metadata
Rank Oldbie
Rank
Oldbie

4DOS.

Reply 5 of 8, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Even better: dir /s /b | findstr "dirname"

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 6 of 8, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

OMG I didn't know about findstr. I've been downloading win32 ports of grep all this time 🤣.

Reply 7 of 8, by lightmaster

User metadata
Rank Oldbie
Rank
Oldbie

i used ndos back in the day then became 4dos.

Reply 8 of 8, by Zorbid

User metadata
Rank Member
Rank
Member

Tepic:

[Win Key]+R
Type "cmd" then [Return]
Be happy 😀