Archived Forum Post

Index of archived forum posts

Question:

Amazon S3 Examples for VBScript - WindowsError: The system cannot find the path specified

Jun 30 '15 at 19:31

I am a newbie trying to use the Chilkat dll to upload and download files from Amazon using vbscript. I have the DLL registered on my server. Overtime I try to connect to Amazon I get the following error back -

WindowsError: The system cannot find the path specified. WindowsErrorCode: 0x3 win32CreateFileAnsi failed. localFilePath: C:inetpubwwwrootgp-planner.simpleswipe.comeventsgraphicsuploadsfiles currentWorkingDirectory: c:windowssystem32inetsrv localWindowsFilePath: C:inetpubwwwrootgp-planner.simpleswipe.comeventsgraphicsuploadsfiles Failed. --S3_UploadFile --ChilkatLog

How do I change my current working directory?


Answer

Have you tried using FileAccess to create and or test the folder structure and permissions?

If FileAccessObj.DirEnsureExists(path_variable) = 1 Then print "ok"
or
If FileAccessObj.FileExists3(path_variable & "somefile.txt") = 1 then print "ok"