Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error 76 path not found 2

Status
Not open for further replies.

din2005

Programmer
Mar 22, 2005
162
GB
Hi all,

I get an error msg path not found,the line highlighted red gives me error! Any suggestions how to sort this out!

' 'Move folders to m:\ Drive where the snapshots are kept
sfol1 = "C:\ImageTransfer" ' change to match the source folder path
dfol1 = "Y:" ' change to match the destination folder path
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFolder sfol1, dfol1, True
 
I think the error might perhaps occur if you have no folder named ImageTransfer directly on the c: drive.

Roy-Vidar
 
Yep u were right about the Y drive. But i still get the same error msg on this line of code

fso.DeleteFolder "X:\Snapshots\*", True

There is an X drive and folder called Snapshots
 
Mine doesn't error, but doesn't delete with that syntax. Use the same syntax as when copying the folder - i e remove the "\*", just pass the full path.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top