Illegal command dosbox что делать

от admin

dosbox && кодировка

Есть программа одна, нужная для универа. Запускаю ее в dosbox, а там одни кракозябры вместо русских букв. Что подскажите?

да откопал уже, спасибо

только вот не соображу, как правильно сделать

если прописываю в файл настроек ruskey то он падает при запуске

У меня всё работает

у меня все равно иероглифы там вместо русских букв, вот что в конфиг я вписал

Попробуйте скачать с http://dosbox.sf.net/ русификацию.

все примонтировалось, но вместо русских букв иероглифы

теперь во всем dosbox иероглифы вместо русских букв

keyrus8b\keyrus.com он пишет при запуске что illegal command

Попробуй это: http://javapc.sourceforge.net/home_home.html + подгружай su.exe (русификатор экрана и клавиатуры для DOS).

keyrus выброси. Он глючный.

> пишет при запуске что illegal command
Значит, укажите полный и нормальный путь к файлу.

System("DATE"): Illegal command error

Member Avatar

I’m trying to make a C program to run DOS commands but I keep getting «illegal command» error.
Here’s the code.

  • 6 Contributors
  • 11 Replies
  • 717 Views
  • 3 Days Discussion Span
  • Latest Post 10 Years Ago Latest Post by Ancient Dragon

Recommended Answers

go to a command prompt and try that command. BTW your program works ok on Windows 7 using vc++ 2012. What compiler and operating system are you using?

I’m using Linux, so I can’t try out DOS commands, but from what I recall both «date» and «ipconfig /all» are valid commands.

Maybe I’m nit-picking here, but the OP’s heading makes the question a bit ambiguous as to which command is giving the error.

From your screenshot, I see that you are running DOSBOx. DOSBox is an emulator for the old MS-DOS. The wiki page http://www.dosbox.com/wiki/Main_Page clearly states that:

DOSBox also comes with its own DOS-like …

All 11 Replies

go to a command prompt and try that command. BTW your program works ok on Windows 7 using vc++ 2012. What compiler and operating system are you using?

Member Avatar

I’m using Linux, so I can’t try out DOS commands, but from what I recall both «date» and «ipconfig /all» are valid commands.

Maybe I’m nit-picking here, but the OP’s heading makes the question a bit ambiguous as to which command is giving the error.

try it using stdlib header instead of process.h
If you are using windows, then you’ll get the desired output!
system(«DATE»), system(«ipconfig/all») are not illegal commands

this for date ? 🙂 and it should be very portable
Click Here

system() calls should work on windows and works for me. What system call does is, it helps you call all the executable files that are present is C:\Windows\System32. So even calculator, notepad,etc all are valid commands and should work. Atleast in MinGw compilers.

Member Avatar

Just a thought, but shouldn’t there be a space between the «ipconfig» and the «/all» switch? Possibly that is the cause of the illegal command error.

I would request someone using Windows to cross-check.

Member Avatar

I tried again and found that a few commands like «dir» and «cd\» are working. However «ipconfig /all» is still returning the «Illegal command» error. Tried including the stdlib.h header too. Here’s the screenshot: http://imgur.com/UyVHp

Member Avatar

Member Avatar

From your screenshot, I see that you are running DOSBOx. DOSBox is an emulator for the old MS-DOS. The wiki page http://www.dosbox.com/wiki/Main_Page clearly states that:

DOSBox also comes with its own DOS-like command prompt. It is still quite rudimentary and lacks many of the features found in MS-DOS, but it is sufficient for installing and running most DOS games.

It is more than likely that DOSBox does not support the «ipconfig» command, which would explain why you are receiving the illegal command error.

Читать:
Radmin vpn как пользоваться

Out of curiousity, why are you using DOSBox as a programming environment? It was never designed for such a purpose.

Запустите .pif в DOSBOX

Я пытаюсь запустить файл .pif в dosbox. Я попытался набрать имя файла с последующим расширением (например, game.pif ), но dosbox говорит « illegal command ».

Как я могу это исправить? Есть ли другой способ, которым я могу сделать это (например, аргументы командной строки)?

Я немного поискал и понял, что .pif — это ярлык для файла .exe . Но запуск файла .exe для игры не работает, так как он работает в режиме совместимости. И это то, что здесь делает .pif .

2 ответа 2

Как было объяснено выше, PIF (файл информации о программе) использовался в дни, когда Windows работала под DOS. Это был набор инструкций для Windows о том, как открыть файл DOS в окне. Те времена прошли, когда Windows является собственной операционной системой. Вы все еще можете прочитать PIF-файл, чтобы определить, что он делает, а затем создать BAT-файл в DOSBox, который делает то же самое.

Существует также ряд приложений DOS Menu/Launcher, которые вы можете найти в открытом доступе, которые должны вам помочь.

Я отвечаю на свой вопрос, так как это может быть полезно для кого-то, кто ищет ответ.

Вот что я сделал, чтобы решить эту проблему. Я использовал hex-редактор и, как упомянул anglfstangard, попытался определить, что на самом деле делает файл .pif. Оказывается, что pif-файл просто выполняет основной exe-файл приложения с дополнительным аргументом -C, который я понял только путем чтения .pif-файла.

Assembly: TASM illegal command

Few weeks ago I asked for a similar TASM compiler, but seems that the instructor wants nothing but TASM. So I installed this using wine in DosBox.

But no matter what my code is, when I run tasm helllo.asm I get

illegal command: TASM

I tried different tasm packages, including the official tasm 5.

Would you please try to run the software I linked to above in Dosbox? and see if you can actually execute anything? I’m on a 64 bit intel pc.

Lynob's user avatar

2 Answers 2

I can’t tell why it doesn’t work for you without more information about your setup, but this is how I set it up and it works just fine (as far as I can tell, not knowing assembly).

Download Tasm for Windows from sourceforge and install it with WINE. Then download and install dosbox for Windows (direct link).

Now you should have two shortcuts on your desktop:

Tasm 1.4 Windows 7 — Windows 8 64bit By Techapple.net

Double click the Tasm shortcut. You should be presented with a maximized DOSBox window. If you don’t want to work in maximized mode press Alt + Enter .

enter image description here

Now we appear a bit stuck, since C:\ is mounted as a WINE virtual disk at the location of Tasm. The simplest way around this is simply mount a new drive letter at the folder where your .asm files are located.

Похожие статьи