Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> การบำรุงรักษาคอมพิวเตอร์

แก้ไขข้อผิดพลาด 'System File Not Suitable for Running MS-DOS and Windows Applications' บน Windows

ข้อความข้อผิดพลาด "The system file is not suitable for running MS-DOS and Microsoft Windows applications" เกี่ยวกับไฟล์ "autoexec.nt" หรือ "config.nt" อาจปรากฏบนคอมพิวเตอร์ Windows 32-bit (Windows 10, 8, 7, Vista หรือ XP) เมื่อคุณพยายามรันหรือติดตั้งแอปพลิเคชัน MS-DOS 16-bit (Windows 64-bit ไม่รองรับแอปพลิเคชัน 16-bit)

แก้ไขข้อผิดพลาด  System File Not Suitable for Running MS-DOS and Windows Applications  บน Windows

 

บทช่วยสอนนี้มีคำแนะนำในการแก้ไขข้อผิดพลาดต่อไปนี้เมื่อพยายามรันหรือติดตั้งโปรแกรมบน Windows:

"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
."

 

วิธีแก้ไข: System File not suitable for running MS-DOS programs

 

วิธีแก้ไขที่ 1: เปลี่ยน Environment Variables

บางโปรแกรม MS-DOS ไม่ทำงาน หากมีเส้นทางชื่อไฟล์ยาว (long filename path) ถูกตั้งค่าในกล่อง "Variable Value" ในคุณสมบัติ "Environment Variables" ดังนั้น วิธีแก้ไขแรกสำหรับปัญหา "System File not suitable for running MS-DOS and Windows applications" คือการระบุเส้นทางชื่อไฟล์สั้นกว่าสำหรับไฟล์ชั่วคราว โดยทำดังนี้:

1. กด Windows แก้ไขข้อผิดพลาด  System File Not Suitable for Running MS-DOS and Windows Applications  บน Windows + R พร้อมกันเพื่อเปิดกล่องคำสั่ง 'Run'
2. ในกล่องคำสั่ง Run พิมพ์: systempropertiesadvanced แล้วกด Enter

แก้ไขข้อผิดพลาด  System File Not Suitable for Running MS-DOS and Windows Applications  บน Windows

 

 

3. ที่แท็บ Advanced เปิด Environment Variables

แก้ไขข้อผิดพลาด  System File Not Suitable for Running MS-DOS and Windows Applications  บน Windows

 

4. เลือกตัวแปร TEMP และคลิก Edit

แก้ไขข้อผิดพลาด  System File Not Suitable for Running MS-DOS and Windows Applications  บน Windows

 

5. เปลี่ยนค่า Variable value path เป็น C:\Windows\Temp และคลิก OK

แก้ไขข้อผิดพลาด  System File Not Suitable for Running MS-DOS and Windows Applications  บน Windows

 

6. จากนั้นเลือกค่า TMP และคลิก Edit
7. ตั้งค่า Variable value path เป็น C:\Windows\Temp
8.
คลิก OK สองครั้งเพื่อปิดหน้าต่างทั้งหมด

แก้ไขข้อผิดพลาด  System File Not Suitable for Running MS-DOS and Windows Applications  บน Windows

 

9. ลองติดตั้งหรือรันโปรแกรมที่ทำให้เกิดปัญหา "System File not suitable" อีกครั้ง

 

วิธีแก้ไขที่ 2: กู้คืนหรือสร้างไฟล์ที่จำเป็นใหม่

ปัญหา "System File not suitable for running MS-DOS applications" อาจเกิดขึ้น หากไฟล์ใดไฟล์หนึ่งต่อไปนี้ หายไป เสียหาย หรือไม่อยู่ในโฟลเดอร์ %systemroot%\System32:

  • Autoexec.nt
  • Command.com
  • Config.nt

สำหรับ Windows 7 หรือ Vista: คุณสามารถลองคัดลอก "Autoexec.nt" และ "Config.nt" จากคอมพิวเตอร์อื่นที่ทำงานปกติ (รุ่น Windows เดียวกัน) หรือสร้างไฟล์ "config.nt" และ "autoexec.nt" ใหม่โดยใช้ Notepad

ก. เพื่อสร้างไฟล์ config.nt

1. เปิด Notepad และคัดลอกวางข้อความด้านล่าง:

dos=high, umb
device=%SYSTEMROOT%\system32\himem.sys
files=40

2. ไปที่ File > Save As
3. ในกล่อง File Name พิมพ์ config.nt
4. เปลี่ยน Save As type เป็น All Files และ Save ไฟล์ในไดเรกทอรี C:\Windows\System32

แก้ไขข้อผิดพลาด  System File Not Suitable for Running MS-DOS and Windows Applications  บน Windows

 

5. รีสตาร์ท (Restart) คอมพิวเตอร์

 

ข. เพื่อสร้างไฟล์ autoexec.nt:

1. เปิด Notepad และคัดลอกวางข้อความด้านล่าง:

@echo off
lh %SYSTEMROOT%\system32\mscdexnt.exe
lh %SYSTEMROOT%\system32\redir
lh %SYSTEMROOT%\system32\dosx
SET BLASTER=A220 I5 D1 P330 T3

2. ไปที่ File > Save As
3. ในกล่อง File Name พิมพ์ autoexec.nt
4. เปลี่ยน Save As type เป็น All Files และ Save ไฟล์ในไดเรกทอรี C:\Windows\System32

แก้ไขข้อผิดพลาด  System File Not Suitable for Running MS-DOS and Windows Applications  บน Windows

5. รีสตาร์ท (Restart) คอมพิวเตอร์

เสร็จแล้ว!

บอกเราว่าบทช่วยสอนนี้ช่วยคุณได้หรือไม่ โดยแสดงความคิดเห็นเกี่ยวกับประสบการณ์ของคุณ กรุณาแชร์และกดไลค์เพื่อช่วยผู้อื่น