คำถามติดแท็ก notepad

1
Notepad เต้นได้ทั้งหมด?
ในระบบ Windows Server 2012 R2 โปรแกรม Kotlin ใช้FileChannel.tryLock()เพื่อล็อคไฟล์แบบเอกสิทธิ์เฉพาะบุคคลเช่นนี้: val fileRw = RandomAccessFile(file, "rw") fileRw.channel.tryLock() ด้วยการล็อคนี้ฉันไม่สามารถเปิดไฟล์ด้วย: WordPad Notepad ++ โดยใช้โปรแกรม C # สำหรับค่าใด ๆFileShare: using (var fileStream = new FileStream(processIdPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) using (var textReader = new StreamReader(fileStream)) { textReader.ReadToEnd(); } จากบรรทัดtypeคำสั่งคำสั่ง: C:\some-directory>type file.txt The process cannot access the file …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.