hI please Help Me
i need a code in c# which can list all the drives and also give there files with adress
example: c:\tc\bin\tc.exe

You can use DriveInfo, Directory, File classes of System.IO namespace.

Can You Give Me A Example Code Sir.I will Be So Thankful to you

By using it i am unable to get files of system volume information Please can you guide me to put away from this trouble:?:
Thanks:icon_wink:

Try this.

string []files=System.IO.Directory.GetFiles(@"c:\xyz","*.*",System.IO.SearchOption.AllDirectories );
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.