Posts Tagged ‘IO’
How to open the windows explorer programmatically in .net
How to open the windows explorer using vb.net
-
System.Diagnostics.Process.Start("explorer.exe", "c:\tmp")
How to get Last Directory of OpenDialog box in .net
You can use the InitialDirectory property of the dialog box to get the last directory browsed.
How to create Temporary filename in vb.Net
-
Private Sub TempFile()
-
Dim sTempFileName AsString = System.IO.Path.GetTempFileName()
-
Dim fsTemp AsNew System.IO.FileStream(sTempFileName, IO.FileMode.Create)
-
-
MessageBox.Show(sTempFileName)
-
-
'write data to the temp file
-
fsTemp.Close()
-
-
System.IO.File.Delete(sTempFileName)
-
End Sub