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
write a program fibonacci series and palindrome program in c
Explain what is a const pointer?
Why is this loop always executing once?
What are near, far and huge pointers?
How many bytes is a struct in c?
What is a program flowchart?
What is clrscr in c?
What is s or c?
What is data types?
Do pointers store the address of value or the actual value of a variable?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
How would you rename a function in C?
What is scope of variable in c?
What is action and transformation in spark?
What tq means in chat?