鱼C论坛

 找回密码
 立即注册
查看: 23140|回复: 7

[技术交流] DOSBox 自动 mount 方法 , 妈妈再也不用担心每次进入都要mount了.

[复制链接]
发表于 2015-8-8 01:05:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

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

步骤零
2015-08-08_003857.png
如果你是洁癖患者 ,或许你会用到这条命令。
  1. C:\DOSBox\DOSBox.exe -editconf notepad.exe -editconf "%SystemRoot%\system32\notepad.exe" -editconf "%WINDIR%\notepad.exe"
复制代码


步骤一
2015-08-08_004231.png
如果你是。。。。。。算了,直接说吧,配置文件最下端
  1. [autoexec]
  2. # Lines in this section will be run at startup.  这里写的每一行都会在DosBox启动之后自动运行
  3. # You can put your MOUNT lines here.          你可以在这里添加MOUNT命令
  4. mount c C:\ASM
  5. C:
复制代码


                               
登录/注册后可看大图


以下文字伸手党请无视。


                               
登录/注册后可看大图

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

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

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


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

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


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

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

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

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


好哒!我又去开始菜单找个13说的配置文件。。。。。。
最后发现其实这个配置文件在C:\Users\Administrator\AppData\Local\DOSBox目录下。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2015-8-8 01:20:51 | 显示全部楼层
最懒最狡猾的方法是把debug.exe拖放到dosbox桌面快捷方式上:lol:
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2015-8-8 23:11:44 | 显示全部楼层
虽然赞,但是其实看不懂
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2015-9-2 08:55:27 | 显示全部楼层


虽然赞,但是其实看不懂!!!
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 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命令写到它下面了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2016-2-11 21:25:35 | 显示全部楼层
看看
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2016-6-4 20:43:57 | 显示全部楼层
又学到不少东西,谢谢了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2017-10-26 09:58:16 | 显示全部楼层
谢谢分享
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-17 03:08

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表