FSO copyfile problems????

Results 1 to 2 of 2

Thread: FSO copyfile problems????

  1. #1
    Join Date
    Dec 1969

    Default FSO copyfile problems????

    why is this giving me...<BR>Microsoft VBScript runtime error &#039;800a004c&#039; <BR><BR>Path not found <BR><BR>errors??????<BR>the Path and strDir are both correct?<BR><BR>dim fso, sourceFile, destFile, Path<BR>Set fso = CreateObject("Scripting.FileSystemObject")<BR>Path = Server.MapPath("docs\")<BR>Path = Path & "\"<BR>fso.copyfile strDir, Path<BR><BR>any help would be appreciated.<BR><BR>thanx,<BR><BR>nick

  2. #2
    Join Date
    Dec 1969

    Default How do you know...

    ...that strDir and Path are correct???<BR><BR>For starters, for example, Path has two characters on the end of it, I will bet.<BR><BR>How about doing<BR><BR>Response.Write "strDir: " & strDir & "&#060;br/&#062;Path: " & Path & "<BR>"<BR><BR>just before the CopyFile and showing us exactly (copy/paste) what that outputs to you.<BR><BR>

Posting Permissions

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