oafc0000 Posted February 26, 2003 Posted February 26, 2003 How do you find out the size of a file in KBs using VB.net Thanks guys Quote
*Gurus* divil Posted February 26, 2003 *Gurus* Posted February 26, 2003 Use the FileInfo class. It accepts the full path to a file as its constructor, then you can use the Length property to get the size of the file in bytes. Divide this by 1024 and you have it in kilobytes. 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
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.