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
Is multithreading possible in c?
Define macros.
What is main () in c language?
Explain union. What are its advantages?
What is meant by errors and debugging?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
How many bytes is a struct in c?
how we can make 3d venturing graphics on outer interface
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is the difference between ++a and a++?
What are the 5 organizational structures?
What is an array? What the different types of arrays in c?
How can I direct output to the printer?
Where we use clrscr in c?
What is enumerated data type in c?