login about faq

how can I move a file to another folder using VBScript?

thanks, Ian

asked Jan 20 at 02:52

Ian's gravatar image

Ian
1


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.

link

answered Jan 20 at 08:37

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

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

link

answered Jan 20 at 23:01

Ian's gravatar image

Ian
1

edited Jan 21 at 07:34

jpbro's gravatar image

jpbro ♦
1.1k2618

THe OS error reported is Access Denied - are you sure the user account that your app is running under has permission to write to the D: drive/folder?

(Jan 21 at 07:35) jpbro ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×15
×5
×4
×4

Asked: Jan 20 at 02:52

Seen: 502 times

Last updated: Jan 21 at 07:35

powered by OSQA