Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a problem .
how to copy client side Directory/Folder Contain files or sub folder in another drives and destination folder................example. i want to browse folder in my system(D:/Folder/subfolder)..i want to copy subfolder to another drive like(E:/newFolder/Myfolder)..
so how to perform this task and how to get path of folder
Posted
Updated 28-Jun-13 16:09pm
v2
Comments
ZurdoDev 28-Jun-13 9:05am    
What?
Tim Carmichael 28-Jun-13 9:26am    
You've asked two questions: how to copy a folder and its contents to another location and, how to select the folder - not sure if this is the source or destination location. Which question would you like answered? Or, better, rephrase the question so it is more understandable.
Shibashish_Choudhury 28-Jun-13 9:37am    
please elaborate and explain your problem in detail..
Asp_Learner 28-Jun-13 10:37am    
Use Improve Question link and elaborate it please

1 solution

If I understand you correctly, you want to copy the contents of a folder to another folder in ASP.Net and you're stuck in getting the Folder Path. If that is the case, you can use
C#
Server.MapPath("~\Folder1")
to get the folder path of a folder named "Folder1" located at the root of your web application.

If I understood the question incorrectly, as everyone else said, rephrase your question.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900