Click here to Skip to main content
15,902,938 members
Home / Discussions / C#
   

C#

 
QuestionHow to set new location for a icon in desktop ? Pin
NgocSang23-Apr-08 1:39
NgocSang23-Apr-08 1:39 
GeneralRe: How to set new location for a icon in desktop ? Pin
Spunky Coder23-Apr-08 2:06
Spunky Coder23-Apr-08 2:06 
GeneralRe: How to set new location for a icon in desktop ? Pin
NgocSang23-Apr-08 2:25
NgocSang23-Apr-08 2:25 
GeneralRe: How to set new location for a icon in desktop ? Pin
Spunky Coder23-Apr-08 2:30
Spunky Coder23-Apr-08 2:30 
GeneralRe: How to set new location for a icon in desktop ? Pin
NgocSang23-Apr-08 2:47
NgocSang23-Apr-08 2:47 
GeneralRe: How to set new location for a icon in desktop ? Pin
Anthony Mushrow23-Apr-08 4:26
professionalAnthony Mushrow23-Apr-08 4:26 
GeneralRe: How to set new location for a icon in desktop ? Pin
NgocSang24-Apr-08 4:45
NgocSang24-Apr-08 4:45 
QuestionKnowing the contents of a file.. Pin
ptr2void23-Apr-08 1:09
ptr2void23-Apr-08 1:09 
Hi,
I am new to C#.NET..
I am building a C# application which searches for files in the HDD..
However there may be many duplicate files with the same name and same contents..
My objective is to delete the files with same contents..

So, say if there are two files (mscorlib.dll for framework 1.1 and another mscorlib.dll for framework 2.0), the application should not delete them, since they are essentially two different assemblies for different framework and should have different contents in it..

Where as say we have a file (abc.exe and another: pqr.exe) having the same contents(say I copied one and renamed it to another), they should be deleted, since they contain same contents and differ in name only..

How do I apply this?

How can I know the contents of a file?
Do I have to apply some checksome algorithm for that? If so, How? If No, then how to find out whether the contents of two files are same??

Please keep in mind I am doing this only for executables (.exe,.dll,.bat,.com etc)
Please guide..
Any help would be greatly appreciated..
Thanks..
GeneralRe: Knowing the contents of a file.. Pin
Christian Graus23-Apr-08 1:15
protectorChristian Graus23-Apr-08 1:15 
GeneralRe: Knowing the contents of a file.. Pin
ptr2void23-Apr-08 1:39
ptr2void23-Apr-08 1:39 
GeneralRe: Knowing the contents of a file.. Pin
J4amieC23-Apr-08 1:54
J4amieC23-Apr-08 1:54 
GeneralRe: Knowing the contents of a file.. Pin
ptr2void23-Apr-08 2:32
ptr2void23-Apr-08 2:32 
GeneralRe: Knowing the contents of a file.. Pin
J4amieC23-Apr-08 3:11
J4amieC23-Apr-08 3:11 
GeneralRe: Knowing the contents of a file.. Pin
carbon_golem23-Apr-08 3:17
carbon_golem23-Apr-08 3:17 
GeneralRe: Knowing the contents of a file.. Pin
Marek Grzenkowicz23-Apr-08 1:56
Marek Grzenkowicz23-Apr-08 1:56 
GeneralRe: Knowing the contents of a file.. Pin
Jordanwb23-Apr-08 10:36
Jordanwb23-Apr-08 10:36 
GeneralLocalized paths and FolderBrowserDialog Pin
Hugo Migneron23-Apr-08 1:01
Hugo Migneron23-Apr-08 1:01 
QuestionXML Parser ? Pin
Ash2023-Apr-08 0:52
Ash2023-Apr-08 0:52 
GeneralRe: XML Parser ? Pin
Christian Graus23-Apr-08 0:57
protectorChristian Graus23-Apr-08 0:57 
GeneralDynamically get assembly version Pin
Christian Graus23-Apr-08 0:47
protectorChristian Graus23-Apr-08 0:47 
GeneralRe: Dynamically get assembly version Pin
Simon P Stevens23-Apr-08 1:53
Simon P Stevens23-Apr-08 1:53 
GeneralRe: Dynamically get assembly version Pin
Christian Graus23-Apr-08 11:36
protectorChristian Graus23-Apr-08 11:36 
GeneralRe: Dynamically get assembly version Pin
Jordanwb23-Apr-08 16:01
Jordanwb23-Apr-08 16:01 
GeneralRe: Dynamically get assembly version Pin
Christian Graus23-Apr-08 16:29
protectorChristian Graus23-Apr-08 16:29 
GeneralRe: Dynamically get assembly version Pin
Jordanwb24-Apr-08 2:12
Jordanwb24-Apr-08 2:12 

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.