Archived Forum PostQuestion:
how can I move a file to another folder using VBScript?
thanks, Ian
See this: http://stackoverflow.com/questions/1939743/amazon-s3-boto-how-to-create-a-folder
There is no concept of folders or directories in S3. You can create file names like "abc/xys/uvw/123.jpg", which many S3 access tools like S3Fox show like a directory structure, but it's actually just a single file in a bucket.
I am trying to use another way of moving a file by downloading it first but I got this error message. Code snippet:
objectName = "crewdocs" & "" & fleetName & "" & crew_directory_name & "" & Replace(fileName," ()","") localFilePath = "D:crewdocs" success = http.S3_DownloadFile(bucketName,objectName,localFilePath)
Error message:
Thu, 21 Jan 2016 03: 42:09 +0000
/misuga/crewdocsc-mmpiccrpuz_ armelindo jr_ tccrpuz%20armelindc%20(rps)
.pdf
Host: misuga.s3.amazonaws.com
Authorization:
a_http0ownload:
httpDownloadFile:
locaIFilePath: D: crewdocs
locdFileAlreadyExists: 1
openForReadWriteWin32:
Failed to open file (2)
locaIFilePath: D: crewdocs
currentWorkingOirectory: C: Prcgram Files (x86)C hronoScanBin
osErrorlnfo: Access is denied.
localWindowsFilePath: D: crewdo