VOGONS


First post, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie

This question is probably not relevant to games, so I don't expect the DOSBox authors to spend any time on it. But I hope other interested users may be able to help.

Under OS X (I haven't experimented with other platforms), the RESCAN command seems to refresh only the directory of the current mounted drive, not of any other mounted drives.

So, if I have one directory mounted as C: and another as drive D:, and I enter RESCAN when the current directory is C:\, the directory of D: is not refreshed. In order to refresh the directory listing of D:, I have to do this:

d:
rescan

(Rescan does not seem to take any parameters, so this does not seem to work: rescan d:)

Is there any way to rescan all mounted drives from the command-line (I want to be able to rescan from a batch file)?

Thanks for any help or advice.

Reply 2 of 8, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie
Dominus wrote:

Ctrl-f4 I think

I think that works, but I can't figure out a way to put it into a batch file.

Reply 3 of 8, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Sorry, didn't read the batch file part. But if you have it in a batch file, I don't see much of a problem to change drives.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 4 of 8, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie
Dominus wrote:

Sorry, didn't read the batch file part. But if you have it in a batch file, I don't see much of a problem to change drives.

I should have added: I don't know in advance which drive letters are mounted - the user can mount any one at any time.

The answer seems to be to write a batch file that looks like this, but set up to work with every drive letter:

if exist d:\nul then set drv=d
go :scanit
....
:scanit
%drv%:
rescan

A real batch expert could set it up with a "for each" loop and save a lot of space.

Is there any hope that a patch or future version would make RESCAN work like Ctrl-F4?

Reply 5 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

yeah, I've added extending rescan to my to do list.

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 8, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie

Thank you!

Reply 7 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Try the following patch:

rescan /all
rescan d:

are supported

Water flows down the stream
How to ask questions the smart way!

Reply 8 of 8, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie

Well, that was fast! Thank you. It works perfectly.

I thought I would have to wait months or years for this. Thank you again.