Batch file 蝙蝠脚本,怎么写?
我总是在Dosbox命令提示符中重复相同的输入(我总是要运行Dosbox并一个接一个地输入这些命令): 在进入LIB之前,它会问我一些问题,我甚至看不出是什么(输出在错误的字符集中)。有没有办法让这个过程自动化 使用SET命令Batch file 蝙蝠脚本,怎么写?,batch-file,dosbox,Batch File,Dosbox,我总是在Dosbox命令提示符中重复相同的输入(我总是要运行Dosbox并一个接一个地输入这些命令): 在进入LIB之前,它会问我一些问题,我甚至看不出是什么(输出在错误的字符集中)。有没有办法让这个过程自动化 使用SET命令 Set Drv = C:\ Set Subdir = Windows\ Set Subdir2 = System32 Cd %Drv%%Subdir%%SubDir2% 如果要与批处理文件交互。。比尔·斯图尔特有一套工具可以帮助 文件路径显示您在Windows上 对于
Set Drv = C:\
Set Subdir = Windows\
Set Subdir2 = System32
Cd %Drv%%Subdir%%SubDir2%
如果要与批处理文件交互。。比尔·斯图尔特有一套工具可以帮助
文件路径显示您在Windows上 对于Windows案例: 用户配置文件文件夹或主文件夹是DOSBox将 查找执行Dosbox.exe的用户的Dosbox.conf文件。 此文件夹的位置因主机操作而异 系统 看来 启动>所有程序>DOSBox>配置>编辑配置
- 找到这部分
- 它出现在文件“Dosbox.conf”中
- 找到相同的部分
(Ref:and)您将命令放入bat文件中,Dosbox有一个在启动时运行bat文件的方法。太好了。我仍然需要输入“LIB”,但是其余的都是自动完成的,谢谢
Set Drv = C:\
Set Subdir = Windows\
Set Subdir2 = System32
Cd %Drv%%Subdir%%SubDir2%
[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
mount c C:\PROGRA~1\OPAL
c:
OPAL
LIB
mount c ~/Documents/_DOSAP_/
c:
dir