Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
QuestionDriveInfoEx.dll is not working on client PC Pin
Vikash Yadav16-Feb-09 20:45
Vikash Yadav16-Feb-09 20:45 
GeneralRe: DriveInfoEx.dll is not working on client PC Pin
Kristian Sixhøj16-Feb-09 21:00
Kristian Sixhøj16-Feb-09 21:00 
GeneralRe: DriveInfoEx.dll is not working on client PC Pin
Vikash Yadav16-Feb-09 21:11
Vikash Yadav16-Feb-09 21:11 
GeneralRe: DriveInfoEx.dll is not working on client PC Pin
Kristian Sixhøj16-Feb-09 21:16
Kristian Sixhøj16-Feb-09 21:16 
GeneralRe: DriveInfoEx.dll is not working on client PC Pin
Vikash Yadav16-Feb-09 21:47
Vikash Yadav16-Feb-09 21:47 
QuestionThread error Pin
CodingLover16-Feb-09 20:34
CodingLover16-Feb-09 20:34 
AnswerRe: Thread error Pin
Kristian Sixhøj16-Feb-09 20:56
Kristian Sixhøj16-Feb-09 20:56 
QuestionDatagrid view binding to BindingSource Don't Display any thing Pin
sepel16-Feb-09 20:17
sepel16-Feb-09 20:17 
QuestionHow to run EXE by Coding in C# Pin
am 200916-Feb-09 20:05
am 200916-Feb-09 20:05 
AnswerRe: How to run EXE by Coding in C# Pin
V.16-Feb-09 20:23
professionalV.16-Feb-09 20:23 
GeneralRe: How to run EXE by Coding in C# Pin
am 200916-Feb-09 20:33
am 200916-Feb-09 20:33 
AnswerRe: How to run EXE by Coding in C# Pin
ABitSmart16-Feb-09 21:53
ABitSmart16-Feb-09 21:53 
GeneralRe: How to run EXE by Coding in C# Pin
am 200916-Feb-09 22:49
am 200916-Feb-09 22:49 
GeneralRe: How to run EXE by Coding in C# Pin
ABitSmart16-Feb-09 23:14
ABitSmart16-Feb-09 23:14 
GeneralRe: How to run EXE by Coding in C# Pin
am 200917-Feb-09 0:08
am 200917-Feb-09 0:08 
GeneralRe: How to run EXE by Coding in C# Pin
ABitSmart17-Feb-09 0:33
ABitSmart17-Feb-09 0:33 
QuestionHow to change the Application Directory path in Windows Explorer control Pin
jayalaxmit16-Feb-09 20:02
jayalaxmit16-Feb-09 20:02 
Questionfile type and size on disk Pin
mightygirls16-Feb-09 19:41
mightygirls16-Feb-09 19:41 
AnswerRe: file size and size on disk Pin
Mycroft Holmes16-Feb-09 21:17
professionalMycroft Holmes16-Feb-09 21:17 
Generalfile type and size on disk [modified] Pin
mightygirls16-Feb-09 21:44
mightygirls16-Feb-09 21:44 
GeneralRe: file type and size on disk Pin
Mycroft Holmes16-Feb-09 22:10
professionalMycroft Holmes16-Feb-09 22:10 
GeneralRe: file type and size on disk Pin
mightygirls16-Feb-09 22:18
mightygirls16-Feb-09 22:18 
GeneralRe: file type and size on disk Pin
Xmen Real 16-Feb-09 22:37
professional Xmen Real 16-Feb-09 22:37 
I think you are talking about "Size on disk", if its that then Size on disk is calculated by block size, each file saved in blocks. In NTFS, the block size is 4096 bytes( 4 KB ) that mean if your file size is 1 KB then it will take 4 KB, 3 KB will be padding to align the other data. So if you gonna need Size on disk then you can use
(long)Math.Ceiling((double)fileinfo.Length / 4096); // wrote in CP, not tested


Note : it was about NTFS, dunno about FAT

TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can

GeneralRe: file type and size on disk Pin
Wernight20-Sep-10 0:29
Wernight20-Sep-10 0:29 
GeneralRe: file type and size on disk Pin
Xmen Real 20-Sep-10 2:07
professional Xmen Real 20-Sep-10 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.