Suppose I have one directory, say Hostedwebsite, from this directory web site is running now.
I want to upload some files so that I don't want to save these file Under hosted Hosted folder reside in C:\Root.
I want to save file in other path say D: UploadedFile//directory
for every upload new directoy will get created
so server.mappath will give the path of C but i want to copy file in D Drive..
I got the path using string
Path = System.IO.Path.Combine(rootPath, test);
But while I am copying from local system to another system using below code.
File.Copy(attachementList[index].FilePath, Path + "\\\\" + attachementList[index].FileName);
It is giving IO exception device not ready.
Can youu guys give me idea?