How to make ASP page pause for some time

Discussion in 'ASP General' started by kk.simhadri@gmail.com, Oct 18, 2006.

  1. Guest

    Hi All
    I am having an ASP page which will get some set of files from
    VSS.After that, in the same page I am running a bat file to remove some
    unwanted files.Then I am displaying the files remaining in the page.

    Every thing is working fine ,but the bat file is taking some time to
    remove the files. so first time when it displays the files , it is
    displaying the unwanted files also_Once after fully loading the page
    ,if I press refresh those unwanted files are not there.


    I want the page to wait for some time to get the files deleted and then
    display them on the page.

    Any idea, how can I do this..????

    Any help would be appreciated
     
    , Oct 18, 2006
    #1
    1. Advertising

  2. How are you running the bat file?
    With WScript.Shell's Run method? Set
    it bWaitOnReturn to true. See here:
    http://msdn.microsoft.com/library/en-us/script56/html/6f28899c-d653-4555-8a59-49640b0e32ea.asp

    Ray at work


    <> wrote in message
    news:...
    > Hi All
    > I am having an ASP page which will get some set of files from
    > VSS.After that, in the same page I am running a bat file to remove some
    > unwanted files.Then I am displaying the files remaining in the page.
    >
    > Every thing is working fine ,but the bat file is taking some time to
    > remove the files. so first time when it displays the files , it is
    > displaying the unwanted files also_Once after fully loading the page
    > ,if I press refresh those unwanted files are not there.
    >
    >
    > I want the page to wait for some time to get the files deleted and then
    > display them on the page.
    >
    > Any idea, how can I do this..????
    >
    > Any help would be appreciated
    >
     
    Ray Costanzo [MVP], Oct 18, 2006
    #2
    1. Advertising

  3. http://classicasp.aspfaq.com/general/how-do-i-make-my-asp-page-pause-or-sleep.html


    <> wrote in message
    news:...
    > Hi All
    > I am having an ASP page which will get some set of files from
    > VSS.After that, in the same page I am running a bat file to remove some
    > unwanted files.Then I am displaying the files remaining in the page.
    >
    > Every thing is working fine ,but the bat file is taking some time to
    > remove the files. so first time when it displays the files , it is
    > displaying the unwanted files also_Once after fully loading the page
    > ,if I press refresh those unwanted files are not there.
    >
    >
    > I want the page to wait for some time to get the files deleted and then
    > display them on the page.
    >
    > Any idea, how can I do this..????
    >
    > Any help would be appreciated
    >
     
    Aaron Bertrand [SQL Server MVP], Oct 18, 2006
    #3
    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. Leah

    Pause a web page?

    Leah, Mar 15, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    3,227
    Steve C. Orr [MVP, MCSD]
    Mar 15, 2006
  2. Ahan Hsieh

    Pause some JSP in tomcat ...

    Ahan Hsieh, Dec 16, 2003, in forum: Java
    Replies:
    4
    Views:
    2,462
    Michael Borgwardt
    Dec 17, 2003
  3. flamesrock
    Replies:
    8
    Views:
    548
    Hendrik van Rooyen
    Nov 24, 2006
  4. Kapteyn's Star

    pause for some secs?

    Kapteyn's Star, Jul 18, 2008, in forum: C Programming
    Replies:
    13
    Views:
    618
    Kapteyn's Star
    Jul 19, 2008
  5. Ron Rushing

    how to in a ASP page, load, pause and reload

    Ron Rushing, Sep 24, 2003, in forum: ASP General
    Replies:
    1
    Views:
    213
    Ray at
    Sep 24, 2003
Loading...

Share This Page