วิธีการ เปิดไฟล์ Exe ด้วย Cmd (Command Prompt) ใน PC หรือ Mac

ดาวน์โหลดบทความดาวน์โหลดบทความ

บทความวิกิฮาวนี้จะแนะนำวิธีการใช้คำสั่งใน Command Prompt ของ Windows ให้เริ่มทำงานหรือเปิดไฟล์ executable (exe) ในคอม

  1. How.com.vn ไท: Step 1 เปิดเมนู Start ในคอม.
    คลิกปุ่ม Start มุมซ้ายล่างของหน้า desktop เพื่อเปิดเมนู Start
  2. How.com.vn ไท: Step 2 พิมพ์แล้วค้นหา cmd ในเมนู Start.
    Command Prompt จะโผล่มาด้านบนสุดของผลการค้นหา
  3. How.com.vn ไท: Step 3 คลิก Command Prompt ในเมนู Start.
    เพื่อเปิดหน้าต่าง Command Prompt
  4. How.com.vn ไท: Step 4 พิมพ์ cd [filepath] ใน Command Prompt.
    เป็นคำสั่งสำหรับไปยังโฟลเดอร์ที่มีไฟล์ exe ของโปรแกรมที่จะเปิด
  5. How.com.vn ไท: Step 5 หา file path ของโฟลเดอร์ที่มีไฟล์ exe.
    เปิดโฟลเดอร์ที่มีโปรแกรม ในหน้าต่าง file explorer แล้ว copy หรือจด file path จากแถบ address ทางด้านบนของหน้าต่าง
    • เช่น ถ้าจะเปิด Mozilla Firefox ไฟล์ exe ที่ต้องเปิด จะอยู่ในโฟลเดอร์ Mozilla Firefox ใน Program Files ของไดรฟ์ C อีกที
    • แบบนี้ file path ก็จะเป็น C:\Program Files\Mozilla Firefox
  6. How.com.vn ไท: Step 6 เปลี่ยน [filepath] เป็นคำสั่งที่มี file path ของโปรแกรม.
    ไปยัง file path นี้ เพื่อใช้คำสั่งเปิดไฟล์ exe ของโปรแกรมในโฟลเดอร์นี้
    • เช่น ถ้าจะเปิด Mozilla Firefox คำสั่งที่ใช้ก็จะเป็น cd C:\Program Files\Mozilla Firefox
  7. How.com.vn ไท: Step 7 กด ↵ Enter หรือ ⏎ Return ในคีย์บอร์ด.
    เพื่อไปยัง file path ที่เลือกไว้ ใน Command Prompt
  8. How.com.vn ไท: Step 8 พิมพ์ start [filename.exe] ใน Command Prompt.
    เป็นคำสั่งใช้เปิดโปรแกรมจาก file path ที่เลือกไว้
  9. How.com.vn ไท: Step 9 เปลี่ยน [filename.exe] เป็นชื่อของโปรแกรม.
    ต้องตรงกับชื่อไฟล์ exe ของโปรแกรมในโฟลเดอร์เป๊ะๆ
    • เช่น ถ้าจะเปิด Mozilla Firefox ตามค่า default ไฟล์โปรแกรมก็จะชื่อ firefox.exe
    • โดยคำสั่งที่ได้ก็จะเป็น start firefox.exe
  10. How.com.vn ไท: Step 10 กด ↵ Enter หรือ ⏎ Return ในคีย์บอร์ด.
    เพื่อเปิดโปรแกรมที่เลือกขึ้นมาในคอม
    โฆษณา

เคล็ดลับ

  • อีกวิธีใช้เปิด Command Prompt คือใช้ฟีเจอร์ Run ของ Windows คุณเปิดหน้าต่าง Run ได้โดยกด Win+R ที่คีย์บอร์ด แล้วพิมพ์ cmd จากนั้นคลิกปุ่ม Run เพื่อเปิด Command Prompt
โฆษณา

เกี่ยวกับวิกิฮาวนี้

How.com.vn ไท: ทีมงานวิกิฮาว
ร่วมเขียน โดย:
นักเขียนในทีมวิกิฮาว
บทความนี้ร่วมเขียนโดยเหล่าบรรณาธิการและนักวิจัยที่ผ่านการฝึกฝนมาเพื่อความถูกต้องและครอบคลุมของเนื้อหา

ทีมผู้จัดการด้านเนื้อหาของวิกิฮาว จะตรวจตราผลงานจากทีมงานด้านเนื้อหาของเราเพื่อความมั่นใจว่าบทความทุกชิ้นได้มาตรฐานตามที่เราตั้งไว้ บทความนี้ถูกเข้าชม 25,762 ครั้ง
หมวดหมู่: คอมพิวเตอร์
มีการเข้าถึงหน้านี้ 25,762 ครั้ง

บทความนี้เป็นประโยชน์กับคุณไหม

⚠️ Disclaimer:

Content from Wiki How ไท language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

Notices:
  • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
  • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
  • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
  • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

โฆษณา