Thread: File upload
View Single Post
  #2 (permalink)  
Old January 8th, 2009, 08:35 AM
Yamini Yamini is offline
Authorized User
Points: 78, Level: 1
Points: 78, Level: 1 Points: 78, Level: 1 Points: 78, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2008
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

how abt this:
Code:
 if (!Directory.Exists(path))         {             Directory.CreateDirectory(path);         }         else         {             if (!File.Exists(path))             {...// u create the file save it hereon        else             {                 Response.Write("");             }
..if a directory has already been created it chks if the path xsits ..it self xplanatory..
__________________
Yamini
Reply With Quote