R ryanlcs Member Joined Apr 17, 2008 Messages 12 Programming Experience Beginner May 27, 2009 #1 Is there a code checking that whether a shared folder is available?? Or check whether ftp path is available? Thanks.
Is there a code checking that whether a shared folder is available?? Or check whether ftp path is available? Thanks.
R ryanlcs Member Joined Apr 17, 2008 Messages 12 Programming Experience Beginner May 27, 2009 #2 Got it for shared folder... VB.NET: IO.Directory.Exists(strtFolderPath.Trim()) But not sure how to check for ftp site .... Any ideas would be great help. Thanks. Upvote 0 Downvote
Got it for shared folder... VB.NET: IO.Directory.Exists(strtFolderPath.Trim()) But not sure how to check for ftp site .... Any ideas would be great help. Thanks.
jmcilhinney VB.NET Forum Moderator Staff member Joined Aug 17, 2004 Messages 15,180 Location Sydney, Australia Programming Experience 10+ May 27, 2009 #3 For an FTP site you'd just have to execute an FtpWebRequest and see if it fails. Upvote 0 Downvote