VOGONS


First post, by Sam324

User metadata
Rank Newbie
Rank
Newbie

When I tried to launch a game with DOSBox and -c parameters for the shortcut, it would interpret the " as part of the command, as well as thinking the whole rest of the target was one command. I tried entering the game's launch program after dosbox.exe, but it just mounted the drive, cd'd, and launched the game, then hung at a black screen. This had happened before as a sign of a wrongly mounted drive (the game's app folder instead of my C: drive mounted as C:\), so I tried adding in -cs for mounting the correct path and then CDing. It still thought that the final " was part of the command, and therefore mounted C: incorrectly. Is there a way around this?

Reply 1 of 13, by red_avatar

User metadata
Rank Oldbie
Rank
Oldbie

Hmm seems like it doesn't read " properly. Maybe it's because the mount command accepts the " sign as part of a path with spaces? For example

mount c: "c:\Program Files\Dosbox"

It might make the mount command 'eat' the second " meaning that the first -c switch never closes.

Reply 3 of 13, by Sam324

User metadata
Rank Newbie
Rank
Newbie

Yes, I tried ', still the same result. DOSBox seems to convert them to "s inside of the emulator, giving me the same outcome as in the pictures. I can't use the game's actual path as an argument, as running it from a drive mounted as C:\DAGGER will cause it to look for "C:\DAGGER" inside the mounted drive (which is already that path IRL; it'd be looking for the local directory "C:\DAGGER\DAGGER") as its directory for files, which causes it to freeze.

Reply 4 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Move the game into a subdirectory like c:\oldgames so you have
c:\oldgames\dagger as structure.
Then use dosbox -c "mount c c:\oldgames" -c "c:" and whatnot.

Reply 5 of 13, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Works fine for me:

> C:\Programs\DOSBox-0.72\dosbox.exe -c "mount C 'C:\Documents and Settings\MiniMax\My Documents\DOSBox\OldGames\Death Rally (Shareware)'"

I don't know how many more spaces I could throw in there...

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 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

jfi: his specific problem is the mount c c: which does not work
(i won't state here how it does work as it is not recommended anyways).

Reply 7 of 13, by Sam324

User metadata
Rank Newbie
Rank
Newbie

Why is it "not recommended" enough to make you not even tell me? I can mount c c:\ fine from within DOSBox. I'll try moving the game to a different folder.

Reply 8 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I can mount c c:\ fine from within DOSBox.

But you SHOULD NOT.

Reply 9 of 13, by Sam324

User metadata
Rank Newbie
Rank
Newbie

What does it do (in a bad way)?

Reply 10 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

if a program/virus goes wild it has access to whatever you mounted as C drive.
so if you mount your total C drive as emulated C . then the virus has access to your Real C drive instead of a subdirectory

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

Reply 11 of 13, by Sam324

User metadata
Rank Newbie
Rank
Newbie

They still make DOS viruses? Or are they still floating around in old programs...?

Reply 12 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Or are they still floating around in old programs...?

I don't know, and i don't care. You have been warned so do what you want.

Reply 13 of 13, by Sam324

User metadata
Rank Newbie
Rank
Newbie

'K. I've been mounting C:\ the whole time. But I'm gonna move it.