+ Reply to Thread
Results 1 to 4 of 4

Problem with error 70 when copying a text file to other location.

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    3

    Problem with error 70 when copying a text file to other location.

    Is there a way to copy a text file that is being used by other program?

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Problem with error 70 when copying a text file to other location.

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    09-12-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Problem with error 70 when copying a text file to other location.

    I will try this code, thanks. I will update the result.
    By the way, I would like to mention that even when I do manual copying of the said file the permission is denied also or more accurately the error message is "Error copying file or folder"

  4. #4
    Registered User
    Join Date
    09-12-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Problem with error 70 when copying a text file to other location.

    I got the same error 70 after I tried it.
    I tried other commands below, there is no error but there is no file as well:
    CopyString = "CMD.EXE /C COPY " & SourceFile & _ " " & DestFile
    and
    Result = apiCopyFile(Source, Destination, False)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1