By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
461,982 Members | 594 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 461,982 IT Pros & Developers. It's quick & easy.

C# Finding Parent Folder for specified file

P: 52

How to find the parent folder of a specfied file.

File is
C:\EX1000\Data\Temp\Unknown\readme.txt and want to know the parent root structure. SO output im string output like Data\Temp\Unknown

File is
C:\EX100\Data\Temp\Hardware\ and output is Data\Temp\Hardware, keeping c:\EX100 as known path, want to determine the parent folder path as Data\Temp\Hardware.

Basicall while modifying the zip file contents, i want to maintain the similar folder structures as in original file.

Thanks many.
Nov 21 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.