VOGONS


First post, by vomi

User metadata
Rank Newbie
Rank
Newbie

I'm using DOSBOX for running DOS programs. Now I need a solution to use a file which is created outside DOSBOX while program is running.
Is there any solution to refresh directory list with sending some command to dosbox from my program without pressing Ctrl-F4 manually?
I try to send Ctrl-F4 from my program but this doesn't work.

Can anybody help me please? ๐Ÿ˜Š

Reply 1 of 2, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

One option is to run the RESCAN program on the Z: drive -- you could have your program do a shell execute on it.

Another option is to mount a folder with the "-t floppy" switch, and files will show up without having to refresh because the cache is not used for floppy drives. However, there are some potential drawbacks to doing this. Although DOSBox will allow any drive letter to be mounted as a floppy type, anything other than A: and B: goes against PC convention and might cause issues with some applications. Also, the drive will appear to have free space consistent with a floppy drive, which might seem insufficient if an application checks the amount of free space.

Reply 2 of 2, by vomi

User metadata
Rank Newbie
Rank
Newbie

WOW! I try with floppy switch ant it works. Free space is not important for me.
Dosbox stop living in a separate planet.

THANKS A LOT INDEED!!! ๐Ÿ˜Š ๐Ÿ˜Š ๐Ÿ˜Š