copyfile command

Results 1 to 2 of 2

Thread: copyfile command

  1. #1
    Join Date
    Dec 1969

    Default copyfile command

    Hi,<BR><BR>I am using copyfile command to copy files. It works fine if I do it once. But if suppose I try to refresh the page or run the page again then it gives me an error of permission denied. Somehow it is not overwriting the file. If the file exists in the destination folder then it gives an error otherwise it is fine. I tried using true parameter also but it won&#039;t work. what is wrong. <BR><BR>Thanks,<BR>archna

  2. #2
    Join Date
    Dec 1969

    Default RE: copyfile command

    set fso = Server.CreateObject("Scripting.FileSystemObject")< BR>fso.CopyFile(pathfrom,pathto, true)<BR><BR>set fso = nothing<BR><BR>Also check that the file you are creating is not set read-only, this might have something to do with permissions set on the directory you are writing to!<BR><BR>HTH<BR>Dave

Posting Permissions

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