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
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What is meant by type casting?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
main() { printf("hello"); fork(); }
Why do we use pointer to pointer in c?
What are extern variables in c?
How can I split up a string into whitespace-separated fields?
Why c is called top down?
What does the function toupper() do?
What is anagram in c?
Why is sprintf unsafe?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What is difference between function overloading and operator overloading?
Write a program with dynamically allocation of variable.
What is #include cctype?