First post, by d_xiansheng
Hi, I'm trying to set up an old DOS tool I used to use to be on the SendTo menu using DOSBox. I've been trying to create a batch file to do this. What I have so far is:
dosbox.exe -c "mount D .\nana" -c "mount C %~1" -c "D:\nana.exe C:\%~n1"
The problem is with the second mount command. If the file I am passing as an argument has spaces in it, DOSBox explodes. It would be the same as type "mount C C:\Program Files" in the console when you need "mount C "C:\Program Files""
My question is, is there any way to group strings when using the -c flag like you do using "" within DOSBox itself? You can't just pass extra "" marks on the commandline without corrupting all the arguments. I need to somehow make the contents of %~1 grouped in a way where the mount command will be able to process it once DOSBox starts up.
Any help you can give me would be much appreciated. Thanks.