qq98360 发表于 2015-8-8 01:05:19

DOSBox 自动 mount 方法 , 妈妈再也不用担心每次进入都要mount了.

本帖最后由 qq98360 于 2015-8-8 01:16 编辑

步骤零

如果你是洁癖患者 ,或许你会用到这条命令。
C:\DOSBox\DOSBox.exe -editconf notepad.exe -editconf "%SystemRoot%\system32\notepad.exe" -editconf "%WINDIR%\notepad.exe"

步骤一

如果你是。。。。。。算了,直接说吧,配置文件最下端

# Lines in this section will be run at startup.这里写的每一行都会在DosBox启动之后自动运行
# You can put your MOUNT lines here.          你可以在这里添加MOUNT命令
mount c C:\ASM
C:
static/image/hrline/4.gif

以下文字伸手党请无视。

static/image/hrline/4.gif
我讨厌每次mount 所以我就去查资料。
dosbox根目录有DOSBox 0.74 Manual.txt
打开看看发现 Start (FAQ):

AUTOMATION: Do I always have to type these commands?
    In the DOSBox configuration file is an section. The commands
    present there are run when DOSBox starts, so you can use this section
    for the mounting. Look at Section 13: The configuration (options) file

大概的意思就是                难道我每次都要输入TMD mount命令吗?
然后作者就回答         不不不 ,dosbox的配置文件有一个节叫autoexec ,每个预设命令在dosbux启动的时候都会运行哒~~!
                                你可以在那里实现自动mount哒。去看13吧!那里会告诉你如何找到配置文件。

然后我就看望这个13发现他的临床反应如下
=====================================
13. The configuration (options) file:
=====================================

The configuration file is automatically created the first time you run DOSBox.
The file can be found in:
   (Windows)"Start/WinLogo Menu"->"All Programs"->DOSBox-0.74->Options
   (Linux)    ~/.dosbox/dosbox-0.74.conf
   (MAC OS X) "~/Library/Preferences/DOSBox 0.74 Preferences"
The file is divided into several sections. Each section starts with a
line. The settings are the property=value lines where value can
be altered to customize DOSBox.
# and % indicate comment-lines.


An extra configuration file can be generated by CONFIG.COM, which can be found
on the internal DOSBox Z: drive when you start up DOSBox. Look in the Section 4:
"Internal programs" for usage of CONFIG.COM. You can start DOSBox with
the -conf switch to load the generated file and use its settings.

DOSBox will load configuration files that are specified with -conf. If none were
specified, it will try to load "dosbox.conf" from the local directory.
If there is none, DOSBox will load the user configuration file.
This file will be created if it doesn't exist.

Important!: In Windows Vista/7 the configuration file won't work correctly
if it is located in "Windows" or "Program Files" folder or their subfolders,
or directly on c:\, so the best place for storing extra configuration files is
for example: C:\oldgames

干货就是伟大的、正确的、受人尊敬的windows用户 ,您的配置文件在开始菜单。。。。。。


好哒!我又去开始菜单找个13说的配置文件。。。。。。
最后发现其实这个配置文件在C:\Users\Administrator\AppData\Local\DOSBox目录下。

qq98360 发表于 2015-8-8 01:20:51

最懒最狡猾的方法是把debug.exe拖放到dosbox桌面快捷方式上:lol:

焚琴煮鹤 发表于 2015-8-8 23:11:44

虽然赞,但是其实看不懂

zhang99844 发表于 2015-9-2 08:55:27



虽然赞,但是其实看不懂!!!

错过会难过 发表于 2015-9-9 13:50:32

有点意思,楼主的意思是,通过模拟器直接进入到本地磁盘,必须要使用mount命令将指定磁盘上的文件夹挂载.挂载命令就是mount, dosbox有一个配置文件,在dosbox每一次运行之前都会读取这个配置文件去初始化dosbox这个软件 , 然后我们可以吧mount命令写入到这个文件中,这样,程序在打开后,我们本地的磁盘的指定文件夹就直接被挂载了 . 而在个配置文件(win7 64位)一般是在C:\Users\Administrator\AppData\Local\DOSBox. 文件名一般是这个:dosbox-0.74.conf
用记事本打开它, 拉到末尾会看到一句:# You can put your MOUNT lines here.
然后你就可以把mount命令写到它下面了

自古天道酬勤 发表于 2016-2-11 21:25:35

看看

bigyoung 发表于 2016-6-4 20:43:57

又学到不少东西,谢谢了

华灯初上7923 发表于 2017-10-26 09:58:16

谢谢分享
页: [1]
查看完整版本: DOSBox 自动 mount 方法 , 妈妈再也不用担心每次进入都要mount了.