简体   繁体   English

如何使用dosbox打开一个新的cmd窗口?

[英]how to open a new cmd window using dosbox?

Is there any way I can open a new cmd window from dosbox? 有什么办法可以从dosbox打开新的cmd窗口? Cannot use start directly/indirectly. 无法直接/间接使用start

Mounting c: drive and directly typing the path doesn't work too.. 挂载c:驱动器并直接输入路径也不起作用。

Neither run nor execute commands work. runexecute命令均无效。

There is no limitation is that cmd should be opened in new window, etc. Actually i am doing this to enter 2-3 string inputs. 没有限制,应该在新窗口等中打开cmd。实际上我正在这样做,以输入2-3个字符串输入。 (where choice command is not applicable) (在choice命令不适用的情况下)

Thanks in advance. 提前致谢。

Although DOS is a monotask system, multiple instances of DOSbox can coexist on the hosting OS, and they can communicate by shared files with one another. 尽管DOS是一个单任务系统,但是DOSbox的多个实例可以在宿主OS上共存,并且它们可以通过共享文件相互通信。

I tried the following batch STARTDOS.CMD on my Windows10 system (it can run either in CMD window or as a service): 我在Windows10系统上尝试了以下批处理STARTDOS.CMD(它可以在CMD窗口中运行或作为服务运行):

 @ECHO OFF 
 TITLE %0
 ECHO >C:\STARTDOS.REQ
:LOOP
 SLEEP 3
 IF NOT EXIST C:\STARTDOS.REQ GOTO :LOOP
 DEL C:\STARTDOS.REQ
 ECHO Starting another DOSbox ...
 START D:\APL\EMU\DOSBox\DOSBox.exe -userconf -noconsole
 GOTO :LOOP

This batch checks the existence of semaphore file C:\\STARTDOS.REQ to start another DOSbox instance in a new cmd window. 此批处理检查信号量文件C:\\ STARTDOS.REQ的存在,以在新的cmd窗口中启动另一个DOSbox实例。

In DOSbox configuration file I have mount c C:\\ 在DOSbox配置文件中,我已mount c C:\\

Now if I execute ECHO >C:\\STARTDOS.REQ withing one DOSbox window, this will launch another DOSbox in its own cmd window. 现在,如果我在一个DOSbox窗口中执行ECHO> C:\\ STARTDOS.REQ ,这将在其自己的cmd窗口中启动另一个DOSbox。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM