create directory

farshad

Well-known member
Joined
May 1, 2003
Messages
109
Location
London
Directory.CreateDirectory("C:\CTC\TempWavFiles")
CopyDirectory(WavPath, "C:\CTC\TempWavFiles\")

On my local machine I am running the above code to first create the directory and second to copy files from the web server to the created directory in the local machine.
This works fine using ASP.NET But when I actually upload the .aspx page on to the web then the code does not function correctly (i.e. the directory does not get created)
I wonder if what Im doing is only for application development. If so how is this task done in ASP.NEt?
 
ASP.NET cant access the computer that views the site, imagine if you went to some web site and someone put a code to delete your whole drive :)
 
Back
Top