Scripting.FileSystemObject

Discussion in 'ASP General' started by Giorgio Cervati, Sep 3, 2003.

  1. Hi everybody,
    found strange behavior in Scripting.FileSystemObject;
    only FileExists() method seems to work fine. All other methods cause browser
    to indefinitely wait for something that never come.

    Here is a sample code. Proc call "fso.CopyFile oldfile,newfile" seems to
    cause client to wait until.....what? If I rem that call everything goes fine
    and fileexists method found the file....
    Any suggestion?

    Thanks in advance.

    G.

    <%
    Dim fso
    oldfile=Server.MapPath("/asp/test/old.asp")
    newfile=Server.MapPath("/asp/test/new/old.asp")

    Set fso=CreateObject("Scripting.FileSystemObject")
    if (fso.FileExists(old)) then
    %>
    Found...
    <%
    fso.CopyFile oldfile,newfile
    else
    %>
    NOT FOUND...
    <%
    end if
    %>
    Giorgio Cervati, Sep 3, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    2,704
  2. Mark
    Replies:
    0
    Views:
    114
  3. PB4FUN

    Scripting.FileSystemObject problems

    PB4FUN, Sep 20, 2003, in forum: ASP General
    Replies:
    3
    Views:
    156
    PB4FUN
    Sep 20, 2003
  4. bart plessers

    NTFS-security and Scripting.FileSystemObject

    bart plessers, Oct 22, 2003, in forum: ASP General
    Replies:
    0
    Views:
    118
    bart plessers
    Oct 22, 2003
  5. MeAndI

    Scripting.FileSystemObject

    MeAndI, Nov 4, 2003, in forum: ASP General
    Replies:
    2
    Views:
    151
    MeAndI
    Nov 4, 2003
Loading...

Share This Page