Hi,
I want to copy a file to target directory. It is simple with copyFile command of File system object. But I need some enhancement like,
If target directory is not exist then it'll create target directory and then copy a file.
Can you help me achieve it?
Let me know if there are other ways to do same.
Thanks.
Solution:
'Create folder if it doesn't exist
If not oFSO.FolderExists(sDestinationFolder) then
oFSO.CreateFolder(sDestinationFolder)
End If