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
const OverWriteFiles = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
if not objFSO.FolderExists("TestFolder") then
call objFSO.CopyFile("C:\newFolderPathName\*.*", "c:\TestFolder" , OverWriteFiles)
wscript.echo "copy complete"