I am trying to learn vbscript and am having trouble with one of me first scripts, can someone look and see what I am doing wrong? I get the following error: Line 13, Path not Found.
'if folder B does not exist it is created
option explicit
const OverWriteFiles = True
dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
dim folderName
if not objFSO.FolderExists("TestFolder") then
call objFSO.CreateFolder("TestFolder")
end if
call objFSO.CopyFile("C:\newFolderPathName\*.*", "c:\TestFolder" , OverWriteFiles)
wscript.echo "copy complete"