VOGONS


Writing to the desktop

Topic actions

First post, by gandalf458

User metadata
Rank Newbie
Rank
Newbie

I have a DOS app which writes certain files to the desktop when running under Windows, eg C:\DOCUME~1\ALLUSE~1\DESKTOP\ - how can I address the c: drive under DOSBox?

Thanks

blessed are the cracked for they let in the light

Reply 1 of 4, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

mount c c:\ (not recommended)

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 2 of 4, by gandalf458

User metadata
Rank Newbie
Rank
Newbie

Thanks - I wondered if that was the only way.

blessed are the cracked for they let in the light

Reply 3 of 4, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

If it's running under DOSBox then how will it think it's running under Windows?

You could try mounting some other directory in DOSBox and then making a fake c:\docume~1\alluse~1\desktop\ tree from there. The game probably checks some environment variables though to find the path.

Reply 4 of 4, by gandalf458

User metadata
Rank Newbie
Rank
Newbie

Ah, now there's a thought. I could mount d as c:\docume~1\alluse~1\desktop\ and write to d:\ - a similar approach would enable me to write to the desktop in Linux as well.

The app is an accounts package I wrote myself.

Many thanks

blessed are the cracked for they let in the light