Answer Posted / yogesh
'CREATE FOLDER STRUCTURE
Option Explicit
Dim objFSO:Set objFSO = CreateObject
("Scripting.FileSystemObject")
Dim strDirectory:strDirectory=inputbox("Enter
path ","Create folder utility"," ")
'Declare variables
GeneratePath(strDirectory)
'Call to Function
Function GeneratePath(pFolderPath) ' Defination of function
GeneratePath = False
If Not objFSO.FolderExists(pFolderPath) Then
If GeneratePath(objFSO.GetParentFolderName(pFolderPath))
Then 'Recursive call to function
GeneratePath = True
Call objFSO.CreateFolder(pFolderPath)
End If
Else
GeneratePath = True
End If
End Function
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What is array of pointers to string?
What is void main () in c?
Why & is used in scanf in c?
How do you determine a file’s attributes?
What is %d called in c?
What are the differences between Structures and Arrays?
Why we use conio h in c?
What does the error message "DGROUP exceeds 64K" mean?
what is the difference between class and unio?
Explain the difference between structs and unions in c?
When should we use pointers in a c program?
Place the #include statement must be written in the program?
Explain what are its uses in c programming?
What is the difference between union and anonymous union?