• Recent Posts

  • Meta

  • Tags

    autocomplete benchmark data cpu cycles directory exists disable beep on enter doevents ebook excel file exists getinputstate gzip high cpu usage intensive task left edge linq mcisendstring microsoft msdn no doevents office open webpage play mp3 play wave right edge scroll textbox shell show icon show notify icon source stop beep on enter system tray text tar textbox text in system tray time consuming tutorials vb.net vb 2008 video visual basic visual basic.net visual basic 2005 visual studio visual studio 2005 ehancements windows mci
  • Check if Directory Exist

    Monday, September 3rd, 2007

     

     
    'vb5+
    Dim f As String
    f = "C:\WINDOWS"
    dirFolder = Dir(f, vbDirectory)
    If dirFolder <> "" Then
        MsgBox("This folder already exists.", vbCritical)
        'directory exists action here
    End If

     

     
    Popularity: 4% [?]

    Popularity: 4% [?]

    Check if File/Folder/Directory Exists in VB.NET

    Sunday, June 17th, 2007

     

     
    Check if a File or Directory/Folder Exists using VB.NET
       
    Check File...
       
    MessageBox.Show(IO.File.Exists("d:\someFileName.txt"))
       
    Check Folder / Directory
       
    MessageBox.Show(IO.Directory.Exists("c:\myFolder"))
     

     
    Popularity: 15% [?]

    Popularity: 15% [?]