Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: FOLDER


Message #1 by "Pallone, Claudio [KMR-SPC]" <ClaudioP@K...> on Fri, 14 Feb 2003 17:00:57 -0000
Hi,

I can not figure out how to check if a folder already exists inside 
another folder and if it doesn't to create it. I have a folder called 
TempReports. Inside this folder I have to create new folders and name 
them using the user name. However before creating them I need to check 
first if they already exist.

I have figured out how to create the file to put inside the TempReports 
but How can check the existance of a subfolder and if it not found, how 
can create it create one??


Dim sw as new StreamWriter(Server.MapPath("TempReports/"+strRptName+ 
".csv"))
        sw.Write(sFile)
        sw.Flush()
        sw.Close()      

Cheers,

Claudio


BMRB International
http://www.bmrb.co.uk +44 (0)20 8566 5000
____________________________________________________________
This message (and any attachment) is intended only for the recipient and 
may contain confidential and/or privileged material. If you have 
received this in error, please contact the sender and delete this 
message immediately. Disclosure, copying or other action taken in 
respect of this email or in reliance on it is prohibited. BMRB 
International Limited accepts no liability in relation to any personal 
emails, or content of any email which does not directly relate to our 
business.

  Return to Index