Results 1 to 8 of 8

Thread: add a delay in asp script

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779

    add a delay in asp script

    I'm trying to check if a file exits. I want to do this every 10 seconds. I have a dll that will check if the file exists, all I need to know is how to wait 10 seconds and then check again. Is there a way to do this?

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Maybe use the sleep API in your DLL?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779
    I use a dll just to check if the file exists, it is just like the File System Object (fso.folderexists). I want to check if the file exists every 10 seconds until the file actually exists but I want to do this in VBScript. Maybe there isn't a way, I don't know.

  4. #4
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089
    I guess u wanting to do it through an asp page , just keep calling the asp page which checks for the file by adding theh meta tag..http-refresh

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779
    How would I do that?

  6. #6
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089
    <META HTTP-EQUIV="REFRESH" CONTENT="10;urlto the page">

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779
    When I do a refresh does it restart my asp code? Because I have dll that I call and I don't want it to keep on restarting.

  8. #8
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Yes, it requests the page from the server again.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

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



Click Here to Expand Forum to Full Width