một số lỗi thường gặp khi thực thi một chương trình được xây dựng trên nền MS-DOS hoặc Windows 16bit
Sửa lỗi
C:\WINDOWS\SYSTEM32\AUTOEXEC.NT. The system file is not suitable for running MS-DOS and Microsoft Windows applications. Choose ‘Close’ to terminate the application.
Sau khi sửa lỗi lần trước AlexBTP tìm hiểu thêm và tổng hợp cách sửa lỗi này 1 cách tổng quan như sau
một số lỗi thường gặp khi thực thi một chương trình được xây dựng trên nền MS-DOS hoặc Windows 16bit
16-bit MS-DOS Subsystem
path to the program that you are trying to start or install
C:\Winnt\System32\config.nt The system file is not suitable for running MS-DOS and Microsoft Windows applications. Choose ‘Close’ to terminate the application.
16-bit MS-DOS Subsystem
path to the program that you are trying to start or install
config.nt The system file is not suitable for running MS-DOS and Microsoft Windows applications. Choose ‘Close’ to terminate the application.
16-bit MS-DOS Subsystem
path to the program that you are trying to start or install
C:\Windows\System32\Autoexec.nt The system file is not suitable for running MS-DOS and Microsoft Windows applications. Choose ‘Close’ to terminate the application.
Lý do là do một trong các file sau đã bị thay đổi:
Config.nt
Autoexec.nt
Command.com
Để khắc phục các lỗi này bạn có thể thực hiện các bước sau:
1. Cho đĩa CD Windows vào.
2. Chọn Start > Run > Gõ cmd > enter hoặc OK.
3. Ở màn hình command prompt, bạn gõ các dòng lệnh sau:
expand [CD-ROM Drive Letter]:\i386\config.nt_ c:\windows\system32\config.nt
expand [CD-ROM Drive Letter]:\i386\autoexec.nt_ c:\windows\system32\autoexec.nt
expand [CD-ROM Drive Letter]:\i386\command.co_ c:\windows\system32\command.com
exit
Trong đó [CD-ROM Drive Letter] là tên hổ đĩa của bạn (D,E,F…).
4. Bây giờ bạn có thể thử chạy lại chương trình của mình xem còn bị lỗi như trên nữa không. Nếu vẫn tiếp tục bị lỗi thì bạn tham khảo thêm các bước sau.
5. Riêng đối với file command.com thì bạn không thể chỉnh sửa được kể cả trong Command Prompt lẫn Windows. Vì thế chỉ có cách copy từ đĩa CD. Đối với các file khác thì bạn tiếp tục các bước sau.
6. Mở Notepad lên và gõ các dòng sau:
dos=high, umb
device=%SYSTEMROOT%\system32\himem.sys
files=40
7. Sau đó save as với tên file là Config.nt.
8. Tiếp tục tạo file mới (File > New) và gõ các dòng lệnh sau:
@echo off
lh %SYSTEMROOT%\system32\mscdexnt.exe
lh %SYSTEMROOT%\system32\redir
lh %SYSTEMROOT%\system32\dosx
SET BLASTER=A220 I5 D1 P330 T3
9. Save as với tên file Autoexec.nt.
10. Sau đó bạn copy 3 file này vào thư mục Windows\System32
Nếu như vẫn tiếp tục gặp lỗi xảy ra khi chạy các chương trình trên thì bạn vào folder Windows\Repair, copy 3 file có tên như trên trong folder này vào System32. Sau đó chỉnh thuộc tính cho 3 file này thành Read-only.
Bài viết của
Webmaster BabyWolf


Phản hồi gần đây