Parsi Coders
سورس کد ساخت یک پوشه (asp.net) - نسخه قابل چاپ

+- Parsi Coders (http://parsicoders.com)
+-- انجمن: Web Development and Design (http://parsicoders.com/forumdisplay.php?fid=47)
+--- انجمن: ASP, ASP.NET (http://parsicoders.com/forumdisplay.php?fid=49)
+--- موضوع: سورس کد ساخت یک پوشه (asp.net) (/showthread.php?tid=2213)



سورس کد ساخت یک پوشه (asp.net) - Amin_Mansouri - 05-02-2012

با سورس زیر میتونید با asp.net یک پوشه بسازید !
english :
This code is use to create a folder at any drive (asp.net)

code :
کد:
Dim MyPath, MyName As String
'Display the names in C:\ that represent directories.
'Set the path.
MyPath = "Path in which u want to create a folder"  
'Retrieve the first entry.    
MyName = Dir(MyPath, vbDirectory)  

Try
'The folder is not there & to be created.
If MyName = "" Then
'Folder created  
MkDir(MyPath)        
MsgBox("A Folder is created as " & MyPath)
End If
Catch ex As Exception
MsgBox("This Path is not Valid")
End Try