0
以下代碼在Temp文件夾中創建只讀文件夾。下面的代碼的如何創建非只讀文件夾
System.IO.Directory.CreateDirectory(path:=IO.Path.GetTempPath & "Myfolder")
directorySecurity:=
部分需要修補
System.IO.Directory.CreateDirectory(path:=IO.Path.GetTempPath & "Myfolder", directorySecurity:=I need help here)
那麼,如何創建文件夾,這是不是隻讀。
右鍵單擊>屬性顯示我仍然只讀? –
@KenKeniee:很奇怪...... TEMP文件夾設置爲只讀嗎?如果使用管理權限運行應用程序會發生什麼情況? –
我在這裏找到了解決方案:http://stackoverflow.com/questions/14853105/give-folder-full-access-when-created?rq=1 –