我目前正在尝试运行一个dos控制台应用程序,该应用程序必须同时打开一定数量的文件(超过15个)。我试过用dosbox和dosemu。Dosbox应该支持127个同时文件,而dosemu有可以设置此限制的config.sys文件。所以我尝试了一个小的C程序来打开文件,我得到了这样的结果:
int main (void) {
FILE *archivos[300];
char numstr[15];
int i=0,nmax=0;
printf("\nIngrese el numero maximo de archivos que desea crear: ")
在从16.04升级到16.10之后,我在运行DosBox时得到以下错误:
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /home/zetathon/.dosbox/dosbox-0.74.conf
MIXER:Got different values from SDL: freq 44100, blocksize 512
ALSA:Can't subscribe to M
我在运行带有参数的程序时遇到了问题。我的批处理文件如下所示:
@echo off
set selfdir=%~dp0
set conf="%temp%\dosbox.%random%.conf"
set dosbox="%selfdir%dosbox.exe"
:: Other code
cmd /c %dosbox% --userconf %conf%
:: Other code
这与错误失败:
The filename, directory name, or volume label syntax is incorrect.
将cmd /c替换为st
我需要使用MASM6.11在我的大学里进行汇编编程。我使用OSX10.9.1并通过自制安装了DOSBOX0.74。
在完成Dosbox上的设置之后。当我试图运行MASM MASM611\bin\MASM时,我会得到一个段错误,而dosbox会崩溃。
在论坛上搜索之后,我尝试运行MASM5.0,它似乎运行得很好。
是否有办法让MASM6.11在dosbox上工作?
更新我的DOSBox首选项的 Autoexec部分
[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines h
当我运行dosbox时,它很难初始化音频。
这是输出:
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /home/smitty/.dosbox/dosbox-0.74.conf
MIXER:Got different values from SDL: freq 44100, blocksize 512
ALSA:Can't subscribe to MIDI port (6
我正在尝试配置Dosbox的Autoexec部分。我下载了DOSBOX for Windows并添加了以下几行:
[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
MOUNT C C:\DOSGAMES\
C:
我保存并运行了Dosbox.exe,它成功了!
我也在为Dosbox in Fedora 30做同样的事情,配置位于/usr/share/dosbox/translations/fr中的文件dosbox-0.74.conf。
但当我运行它时,它
我正在尝试理解一些游戏的dosbox.conf文件,我想在linux上玩,我在autoexec部分中注意到,有些行的前缀不是“@”,就是没有,我不知道这个前缀是用来做什么的。
两个例子:游戏1
[autoexec]
cd ..
@cd ..
@mount c .\games\
imgmount d .\games\baris\cd\BARIS.cue -t cdrom
@c:
cls
@cd baris
@call buzz
exit
游戏2
[autoexec]
cd ..
cd ..
mount c .\games\WackyWhe
imgmount d .\gam
当我尝试为debian运行dosbox.installer时,我得到
root@raspberrypi:~# ./dosbox.install
./dosbox.install: line 1: debian/dosbox.desktop: Permission denied
./dosbox.install: line 2: debian/icons/hicolor: Is a directory
./dosbox.install: line 3: usr/bin/dosbox: No such file or directory
./dosbox.install: line 4: usr/
我正在处理一个简单的C#项目,该项目要求我启动一个程序,并将其指向一个自定义配置文件。具体来说,我使用一个自定义配置文件启动DOSBox,该文件告诉它在启动时应该做什么。我以前使用过快捷键,本质上这就是我在快捷方式中所放的东西,它运行得非常完美。
"D:\Video Game Emulation\DOSBox\DOSBox.exe" "D:\Video Game Emulation\DOS Windows\GAMES\CUSTOM.CONF"
现在,我正在编写的程序只是一种更漂亮的方式,可以通过DOSBox启动一堆老的DOS游戏,每个游戏都有自己的自定义配置。所
我知道dosbox还没有与葡萄酒集成,但是每当我双击DOS程序(带有葡萄酒),它就会打开dosbox并在下一分钟关闭它。这一切为什么要发生?
这是终端输出:
tachyonsos@tachyons-desktop:~$ wine '/home/tachyonsos/Desktop/TC.EXE'
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /home/tach
我试着在dosbox下运行一个游戏,但是它没有声音,在终端中dosbox说:
MIXER:Can't open audio: No available audio device , running in nosound mode.
ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)
MIDI:Opened device:none
更新
我在dosbox配置文件中将端口更改为128:0,现在它说
ALSA:Client initialised [128:0]
MIDI:Opened device:alsa
但仍然没有声音:
这是我第一次使用Stack Overflow,所以请宽大处理这个问题。我一直在尝试使用batch进行编程,并使用DOSbox在我的linux机器上运行它们。
下面是我一直使用的代码:
@echo off
set a=3
set b=4
set c=%a%+%b%
echo %c%
set d=%c%+1
echo %d%
它的输出是:
3+4
3+4+1
我如何将这两个变量相加,而不是回显该字符串?