Results 1 to 3 of 3


  1. #1
    Joseba Guest


    I want to copy a pdf file (file.pdf) to a new pdf file (copy.pdf). <BR>Unfortunately I am unable to read the new file. <BR><BR>This is the way I am trying to do it.<BR>___________________________<BR>Set fs = CreateObject("Scripting.FileSystemObject")<BR>Set a = fs.OpenTextFile("e:dirfile.pdf")<BR>ct =a.ReadAll<BR>lenct=len(ct)<BR>a.close<BR><BR>Set fs = CreateObject("Scripting.FileSystemObject")<BR>Set a = fs.CreateTextFile("e:dircopy.pdf",True)<BR>a.Write (ct)<BR>a.Close<BR>____________________<BR><BR>Any idea how to solve the problem?<BR><BR>Thanks in advance

  2. #2
    svk Guest

    Default RE:

    You Can Directly Use FileSystemObject.CopyFile Method to copy a file<BR>If You need more Help on Copying Files See the Articles in 4Guys Resources

  3. #3
    svk Guest

    Default RE:

    Iam Sorry.Its Not FileSystemObject,It is FileObject.

Posting Permissions

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