หากคุณพยายามติดตั้งแอปพลิเคชัน 16-bit DOS บน Windows 32-bit อาจพบข้อผิดพลาด – The system file is not suitable for running MS-DOS and Microsoft Windows applications ในบทความนี้ เราจะแก้ไขปัญหานี้ด้วยโซลูชันง่ายๆ
นี่คือการแจ้งเตือนที่คุณจะได้รับหากเจอปัญหานี้:
“16-bit MS-DOS Subsystem
C:\Windows\system32\cmd.exe
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 run or install
C:\Windows\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 run 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 run 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.”
The system file is not suitable for running MS-DOS and Microsoft Windows applications
มี 2 วิธีในการแก้ไขข้อผิดพลาดนี้:
1] เปลี่ยนค่า Variable Value

มีโปรแกรม MS-DOS บางตัวที่ทำงานไม่ได้ หากเส้นทางชื่อไฟล์ของ Environment Variables ยาวเกินไป ดังนั้นเพื่อแก้ไขปัญหา เราจะกำหนดค่าเส้นทางไฟล์สั้นกว่าให้กับตัวแปรเดียวกัน
เปิด Run โดยกด Win + R พิมพ์คำสั่งต่อไปนี้ และกด Enter:
systempropertiesadvanced
ตรวจสอบว่าอยู่ที่แท็บ Advanced และคลิก Environmental Variable > TEMP > Edit
วางตำแหน่งต่อไปนี้ในส่วน Variable Value และคลิก OK:
C:\Windows\Temp
ตอนนี้ เลือก TMP จาก Environmental Variable และคลิก Edit
วางตำแหน่งต่อไปนี้ในส่วน Variable Value และคลิก OK:
C:\Windows\Temp
ลองติดตั้งซอฟต์แวร์ที่ก่อให้เกิดปัญหาอีกครั้ง
2] สร้างไฟล์ที่จำเป็นใหม่ (Re-generate required files)

อีกสาเหตุหนึ่งคือไฟล์ต่อไปนี้เสียหายหรือหายไป:
- Config.nt
- Autoexec.nt
เราจะสร้างไฟล์ Config.nt และ Autoexec.nt ใหม่ และวางไว้ในตำแหน่งที่ถูกต้อง
สำหรับ Config.nt ให้เปิด Notepad และวางข้อความต่อไปนี้:
dos=high, umb device=%SYSTEMROOT%\system32\himem.sys files=40
คลิก File > Save as ไปที่ตำแหน่งต่อไปนี้ เปลี่ยน “Save as type” เป็น All Files ตั้งชื่อไฟล์ config.nt และคลิก Save:
C:\Windows\System32
สำหรับ Autoexec.nt ให้เปิด Notepad และวางข้อความต่อไปนี้:
@echo off lh %SYSTEMROOT%\system32\mscdexnt.exe lh %SYSTEMROOT%\system32\redir lh %SYSTEMROOT%\system32\dosx SET BLASTER=A220 I5 D1 P330 T3
คลิก File > Save as ไปที่ตำแหน่งต่อไปนี้ เปลี่ยน “Save as type” เป็น All Files ตั้งชื่อไฟล์ autoexec.nt และคลิก Save:
C:\Windows\System32
ตอนนี้ รีสตาร์ทคอมพิวเตอร์ หวังว่าโซลูชันเหล่านี้จะแก้ไขข้อผิดพลาด “The system file is not suitable for running MS-DOS and Microsoft Windows applications”
อ่านต่อ: แก้ไขข้อผิดพลาด Invalid MS-DOS Function file error
