Jul 28, 2004 #1 D dhj Well-known member Joined Sep 18, 2003 Messages 82 Location Sri Lanka hi How can i check whether a file is existing in a specific path from vb.net and how to create a new folder from vb.net thx
hi How can i check whether a file is existing in a specific path from vb.net and how to create a new folder from vb.net thx
Jul 28, 2004 #2 H Hamburger1984 Well-known member Joined Jun 12, 2003 Messages 162 Location Hamburg,Germany dhj said: hi How can i check whether a file is existing in a specific path from vb.net Click to expand... Code: If System.IO.File.Exists("C:\myFile.txt") Then MessageBox.Show("File Exists") Else MessageBox.Show("404 - File Not Found") End If dhj said: and how to create a new folder from vb.net Click to expand... Code: System.IO.Directory.CreateDirectory("C:\myDirectory") dhj said: thx Click to expand... youre welcome... Hope this helps! Andreas
dhj said: hi How can i check whether a file is existing in a specific path from vb.net Click to expand... Code: If System.IO.File.Exists("C:\myFile.txt") Then MessageBox.Show("File Exists") Else MessageBox.Show("404 - File Not Found") End If dhj said: and how to create a new folder from vb.net Click to expand... Code: System.IO.Directory.CreateDirectory("C:\myDirectory") dhj said: thx Click to expand... youre welcome... Hope this helps! Andreas
Jul 29, 2004 #3 D dhj Well-known member Joined Sep 18, 2003 Messages 82 Location Sri Lanka thank you very much
Jul 29, 2004 #4 H Hamburger1984 Well-known member Joined Jun 12, 2003 Messages 162 Location Hamburg,Germany youre welcome! [Broken External Image]:http://computerhelp.forum/x_images/images/smilies/smile.gif