Login | |
|
 |
RE: Need small help with folder creation and path - 11/9/2006 3:07:43 AM
|
|
 |
|
| |
ebgreen
Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
|
strFolder = InputBox("Please Enter the path where you want to save your backup","Backup Path","") IF strFolder = "" THEN Dim MsgPath MsgPath=MsgBox("Closing script - No Path was Entered",0, "Error!!!") WScript.Quit Else SmartCreateFolder strFolder End If Sub SmartCreateFolder(strFolder) Dim oFSO:Set oFSO = CreateObject("Scripting.FileSystemObject") If oFSO.FolderExists(strFolder) Then Exit Sub Else SmartCreateFolder oFSO.GetParentFolderName(strFolder) End If oFSO.CreateFolder(strFolder) Set oFSO = Nothing End Sub
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|