0
當試圖將C:\ a.txt移動到C:\ b.txt時,我在Windows 2008上使用Windows API的MoveFileEx函數和MOVEFILE_DELAY_UNTIL_REBOOT選項。當使用regedit.exe時,我可以看到這些條目按照Microsoft的文檔插入正確的註冊表位置(System \ CurrentControlSet \ Control \ Session Manager \ AllowProtectedRenames),但是在重新啓動後,重命名仍然沒有發生。這可能是什麼原因?在Win2008上可能會採取更多步驟嗎?MoveFileEx與MOVEFILE_DELAY_UNTIL_REBOOT對Win2008沒有影響