nibsy Posted November 5, 2002 Posted November 5, 2002 Can anyone tell me how to check if a file exists in a directory? Quote
Guest ths Posted November 5, 2002 Posted November 5, 2002 Hello There If Dir("C:\windows\win.ini", FileAttribute.Archive) <> "" Then ' File Exists Else ' File not Exists End If SKOl Rulezzzzzzzzzzzzz Quote
*Gurus* divil Posted November 5, 2002 *Gurus* Posted November 5, 2002 ths: This is the VB.NET forum. Please don't post VB6 answers here. nibsy: System.IO.File.Exists(path) Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Guest Ed Simon Posted November 5, 2002 Posted November 5, 2002 In the System.IO.File import there is a function called Exists withc returns a true if the fiile exists. FullPath is the file you want to check for. BoolVar = System.IO.File.Exists(fullpath) Good Luck Ed Quote
Guest ths Posted November 6, 2002 Posted November 6, 2002 Sorry for VB6 answer . . . So How can i do to unload a assembly (.dll ) in VB.NET ?!?! tks Quote
nibsy Posted November 6, 2002 Author Posted November 6, 2002 Probably best to post this question as a new thread, ths. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.