FoxProProgrammer
Programmer
Does anyone know how to check if a folder exists on a drive, and if not, create it? I found the CreateFolder Method in the Help, but the example is the pits and doesn't seem to apply to my situation. The Help for CreateFolder has the following syntax:
object.CreateFolder(foldername),
where object is a FileSystemObject and foldername is the string expression of the folder to create.
I looked up FileSystemObject and didn't see anything that applies to what I am trying to do. How do I define the object so I can create the folder? It shouldn't be this difficult to see if a folder exists, and create a folder!
Thanks for any guidance.
dz
object.CreateFolder(foldername),
where object is a FileSystemObject and foldername is the string expression of the folder to create.
I looked up FileSystemObject and didn't see anything that applies to what I am trying to do. How do I define the object so I can create the folder? It shouldn't be this difficult to see if a folder exists, and create a folder!
Thanks for any guidance.
dz