PC Review


Reply
Thread Tools Rate Thread

Checking the size of a file

 
 
Dakkar
Guest
Posts: n/a
 
      13th Feb 2005
Is it possible to check the size of a file that i wanted?
If it is how?


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UmFrZXNoIFJhamFu?=
Guest
Posts: n/a
 
      13th Feb 2005
Hi,

Use the FileInfo.Length property.

Eg:
FileInfo info = new FileInfo("C:\\asd.txt");
Console.WriteLine(info.Length);

HTH,
Rakesh Rajan

"Dakkar" wrote:

> Is it possible to check the size of a file that i wanted?
> If it is how?
>
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RSS vs. checking file size? brett Microsoft ASP .NET 1 18th Jan 2007 04:37 PM
file size & error checking =?Utf-8?B?cnVuYWVybw==?= Microsoft Excel Misc 3 26th Sep 2006 07:40 PM
Checking size of a file on disk Junior Microsoft Access Form Coding 3 29th Jul 2005 02:47 PM
Conflicting used space information when checking the drive property against marking all files and checking the marked file properties. elloko Windows XP Configuration 3 19th Dec 2004 05:34 AM
Re: Checking folder size Ken Slovak - [MVP - Outlook] Microsoft Outlook VBA Programming 2 25th Aug 2003 07:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 AM.