Im getting the permission denied runtime error on the following line of code
strTargetFolder = objFSO.CreateFolder(strStartTargetFolder & "\" & objFile.Name)
and yes I am the admin on my machine.
Here is the rest of the code:
Option Explicit
Dim objFSO, objFile, objFolder, objSubFolder...
Okay new problem, my folder path has a space in and so does a lot of my deeper, much deeper level folder. How do I pass a variable with double quotation marks without making the variable invalid.
Im getting the following error:
C:\Compile All Visual Studio Solutions.vbs(16, 1) Microsoft VBScript runtime error: Object required: '[string: "F:\Code Samples"]'
where - line 16 is this:
Set objFolderPath = objFolder.Path
-Full Code-
Option Explicit
Dim objFSO, objFile, objFolder...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.