Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
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 
QuestionWork on with two VS projects Pin
CodingLover16-Feb-09 17:46
CodingLover16-Feb-09 17:46 
AnswerRe: Work on with two VS projects Pin
Christian Graus16-Feb-09 17:48
protectorChristian Graus16-Feb-09 17:48 
QuestionRe: Work on with two VS projects Pin
CodingLover16-Feb-09 17:49
CodingLover16-Feb-09 17:49 
GeneralRe: Work on with two VS projects Pin
Xmen Real 16-Feb-09 19:15
professional Xmen Real 16-Feb-09 19:15 
QuestionHow to read No of Lines and Characters in a Tiff image Pin
devacaleb16-Feb-09 17:45
devacaleb16-Feb-09 17:45 
AnswerRe: How to read No of Lines and Characters in a Tiff image Pin
Christian Graus16-Feb-09 17:48
protectorChristian Graus16-Feb-09 17:48 
GeneralRe: How to read No of Lines and Characters in a Tiff image Pin
devacaleb16-Feb-09 18:00
devacaleb16-Feb-09 18:00 
QuestionComboboxes and classes... Pin
Illegal Operation16-Feb-09 17:07
Illegal Operation16-Feb-09 17:07 
AnswerRe: Comboboxes and classes... Pin
Christian Graus16-Feb-09 17:50
protectorChristian Graus16-Feb-09 17:50 
GeneralRe: Comboboxes and classes... Pin
Illegal Operation16-Feb-09 22:24
Illegal Operation16-Feb-09 22:24 
Questionc# doubt in ArrayList Pin
d chase begins16-Feb-09 16:39
d chase begins16-Feb-09 16:39 
AnswerRe: c# doubt in ArrayList Pin
PIEBALDconsult16-Feb-09 16:47
mvePIEBALDconsult16-Feb-09 16:47 
AnswerRe: c# doubt in ArrayList Pin
Xmen Real 16-Feb-09 19:21
professional Xmen Real 16-Feb-09 19:21 
QuestionDealing with Point to Point Protocol and XonXoff Characters Pin
ajorge200816-Feb-09 12:34
ajorge200816-Feb-09 12:34 
AnswerRe: Dealing with Point to Point Protocol and XonXoff Characters Pin
Luc Pattyn16-Feb-09 13:46
sitebuilderLuc Pattyn16-Feb-09 13:46 

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.