Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

เปลี่ยน File Attributes, สร้างไฟล์/โฟลเดอร์ Super Hidden ด้วย attrib.exe

Attrib.exe คือ System File ของ Windows อยู่ที่ C:\Windows\System32 ใช้แสดงหรือเปลี่ยน File Attributes ฟังก์ชันคำสั่ง attrib คือ Set, Change, Remove File Attributes ใช้ attrib ทำให้ไฟล์ Read-only, Archive, System, Hidden ได้

File Attributes คืออะไร

File Attribute คือ Metadata ที่ผูกกับไฟล์บนคอมพิวเตอร์ บอกรายละเอียด เช่น สร้าง/แก้ไขเมื่อไหร่ ขนาด ไขนามส สิทธิ์

Windows มี 4 Attributes สำหรับไฟล์/โฟลเดอร์:

  • Read-only – r : อ่านได้ แก้ไขไม่ได้
  • System – s : สำหรับ OS ไม่แสดงใน Directory Listing ปกติ
  • Hidden – h : ไม่แสดงใน Directory Listing โดย Default
  • Archive – a : สำหรับ Backup/Copy

เปลี่ยน File Attributes ด้วย attrib.exe

Attributes ตั้งค่าด้วย [+] ลบด้วย [-]

ดู File Attributes: คลิกขวาไฟล์/โฟลเดอร์ > Properties ใน Windows 10/8/7/Vista จะเห็น Checkbox Read-only และ Hidden เท่านั้น ต้องกด Advanced เพื่อเห็น Archive

เปลี่ยน File Attributes, สร้างไฟล์/โฟลเดอร์ Super Hidden ด้วย attrib.exe

ดู Syntax Attrib: พิมพ์ attrib /? ใน Command Prompt Enter

เปลี่ยน File Attributes, สร้างไฟล์/โฟลเดอร์ Super Hidden ด้วย attrib.exe

สร้าง Super-hidden Private File/Folder

身为 Windows End-user เราสามารถใช้ฟีเจอร์นี้สร้างไฟล์/โฟลเดอร์ Hidden Private ได้ สมมติมีโฟลเดอร์ชื่อ Private บน Desktop ต้องการ Hidden

เปิด CMD พิมพ์คำสั่ง Enter (ACK คือ Username ของผม ใช้ Username ของคุณแทน):

attrib +s +h "C:\Users\ACK\Desktop\Private" 

จะทำให้โฟลเดอร์เป็น 'System' Folder และ 'Hidden' Folder หากใช้ "-s +h" จะเป็น Ordinary Hidden Folder เท่านั้น

เปลี่ยน File Attributes, สร้างไฟล์/โฟลเดอร์ Super Hidden ด้วย attrib.exe

เพื่อดู ต้องไป Folder Options > Check Show hidden files, folders, and drives และ Uncheck Hide protected operating system files หรือผ่าน CMD ใช้ "-s -h" แทนคำสั่งข้างต้น

เปลี่ยน File Attributes, สร้างไฟล์/โฟลเดอร์ Super Hidden ด้วย attrib.exe

วิธีนี้ไม่ Fool-proof แตพอใช้ซ่อนโฟลเดอร์จากสายตาส่วนใหญ่ หากต้องการมากกว่านี้ ลอง Free File/Folder Encryption Software

รายการ Hidden System Files/โฟลเดอร์ทั้งหมด

กรณีหายากที่ลืมชื่อโฟลเดอร์แต่รู้ Location หรือในทางกลับกัน รันคำสั่ง:

attrib C:\*.* /s|find "A SH">C:\hiddensystemfiles.txt&notepad C:\hiddensystemfiles.txt

จะ Output รายการ Hidden System Folders ทั้งหมดบน C Drive

เปลี่ยน File Attributes, สร้างไฟล์/โฟลเดอร์ Super Hidden ด้วย attrib.exe

สามารถปรับ Syntax ให้ค้นหา Location เฉพาะได้

File Attribute Changer Freeware

หากหา Freeware Tool เปลี่ยน Attributes/Properties ไฟล์/โฟลเดอร์เร็ว ลอง Attribute Changer Tool สำหรับ Power Users เปลี่ยน Attributes, Date, Time, NTFS Compression ทุกอย่าง Exif Date/Time ในรูปภาพดิจิทัลแก้ไขได้ง่ายด้วย Attribute Changer

ดูวิธีเพิ่ม File Attributes Option เข้า Context Menu

เปลี่ยน File Attributes, สร้างไฟล์/โฟลเดอร์ Super Hidden ด้วย attrib.exe