0
我在%Temp%
中創建了新文件夾。它們是空的,無處可用。我使用這些vb.net代碼刪除臨時文件。我無法刪除%Temp中的文件夾
For Each filepath In Directory.GetFiles(TempFolderPath)
Try
File.Delete(filepath)
Directory.Delete(filepath)
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
Next
怎麼了?
這是一個很好的問題。什麼是錯的?你有錯誤嗎?它顯示的是MessageBox嗎?錯誤說的是什麼? –