vb.net を使用して Windows アプリケーションのコードを書いています。の下のテキストファイルを開きたいですc:\
。ファイルが既に存在する場合は、そのファイルを削除します。
my code
-------
Dim file As String = "C:\test.txt"
If System.IO.File.Exists(file) Then
file.Remove(file)
Else
System.Diagnostics.Process.Start(file)
End If
そのファイルを開こうとすると、次のエラーが表示されます。
error
-----
The system cannot find the file specified