FileSystemObject - Creating Folders
Posted on 2006-06-28
Any chance of a sample code?
I have a string variable which contains either "C:\program\file.txt", "C:\program\subfolder\file.txt", "C:\program\subfolder\subfolder2\file.txt" and so on...
The folder C:\program\ already exists, but right now it is empty.
I need code that will look at the string variable, take of the "file.txt" from the end of the string, check to see if the folder structure exists, and if it doesnt, create it.
I also need the fully intact string at the end so i can use it in order to copy a file from a location to that one.