Posts Tagged ‘IO’

How to open the windows explorer programmatically in .net


How to open the windows explorer using vb.net

  1. System.Diagnostics.Process.Start("explorer.exe", "c:\tmp")

, , ,

No Comments


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.

, , ,

No Comments


How to create Temporary filename in vb.Net
  1. Private Sub TempFile()
  2.      Dim sTempFileName AsString = System.IO.Path.GetTempFileName()
  3.      Dim fsTemp AsNew System.IO.FileStream(sTempFileName, IO.FileMode.Create)
  4.  
  5.      MessageBox.Show(sTempFileName)
  6.  
  7.      'write data to the temp file
  8.      fsTemp.Close()
  9.  
  10.      System.IO.File.Delete(sTempFileName)
  11.  End Sub

, , ,

No Comments



SetPageWidth