VOGONS


First post, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie

This request has no direct relevance to any game, but it might be useful for configuration files. I don't expect the developers to waste time on it, but I hope a user who is more expert than I am might be interested in the question.

I would like to be able to perform this action, perhaps in a batch file that is called by the [autoexec] section of a .conf file: find the 8.3 DOS short name of a file that is present on an already-mounted drive, and put that short name into a variable, so it can be used by an application running inside DOSBox.

So, if there were a "setsfn" command that did this, it might work like this. For example, if my "My Documents" folder on the host system is mapped to drive X:, I would then give this command:

setsfn myvar "c:\documents and settings\roscoe\my documents\My Long FileName Document.extension"

The result would be that the variable %myvar% would contain something like this: X:\MYLONG~1.EXT

Is this theoretically possible in DOSBox?

Last edited by emendelson on 2011-08-15, 15:49. Edited 1 time in total.

Reply 1 of 2, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

it's codable, but not going to happen

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

Reply 2 of 2, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie
Qbix wrote:

it's codable, but not going to happen

OK - I won't waste any more bandwidth on it. DOSBox is already so powerful that I feel very selfish asking for even more.