Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Executing a program, folder, document after a time specified  (Read 6039 times)

0 Members and 1 Guest are viewing this topic.

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: Executing a program, folder, document after a time specified
« Reply #15 on: May 03, 2009, 10:47:20 AM »
Oh thanks, Devcom. Completely forgot about that. ;)

Esgrimidor

    Topic Starter


    Hopeful

    Thanked: 1
    Re: Executing a program, folder, document after a time specified
    « Reply #16 on: May 03, 2009, 12:37:09 PM »
    You might want to have a look at the WAIT command (not included with Windows).

    That command is used in the bat created by Startup Manager, but it's not with time, only begin the next when the last has finished.
    No dejes que tu felicidad dependa de lo que no depende de tí.

    Esgrimidor

      Topic Starter


      Hopeful

      Thanked: 1
      Re: Executing a program, folder, document after a time specified
      « Reply #17 on: May 03, 2009, 12:39:32 PM »
      or you can use this:

      Code: [Select]
      ping -n 1 -w 5000 1.1.1.1 >nul
      it will wait 5 sec, so you can use this a wait ;)

      I'll try. Now I have a little problem. I don't remember how to resolver but I have resolved in the past.
      I see the DOS windows while i'm executing the bat. I would like an invisible command window.

      Where can i find more information about ping ?

      Thanks
      Excuse my language. I'm from Canary Islands
      No dejes que tu felicidad dependa de lo que no depende de tí.

      devcom



        Apprentice

        Thanked: 37
        Re: Executing a program, folder, document after a time specified
        « Reply #18 on: May 03, 2009, 12:45:32 PM »
        try ping /? in cmd, ping is used to test connection etc., but this is the easiest way to make wait ;)
        Download: Choice.exe

        Esgrimidor

          Topic Starter


          Hopeful

          Thanked: 1
          Re: Executing a program, folder, document after a time specified
          « Reply #19 on: May 03, 2009, 12:53:50 PM »
          try ping /? in cmd, ping is used to test connection etc., but this is the easiest way to make wait ;)

          okis, a trick
          No dejes que tu felicidad dependa de lo que no depende de tí.

          Esgrimidor

            Topic Starter


            Hopeful

            Thanked: 1
            Re: Executing a program, folder, document after a time specified
            « Reply #20 on: May 04, 2009, 06:57:02 AM »
            I'm using ping, but in this bat I don´t get the clean window finally .
            What can i do ?

            M:\Archivos de programa\AutoCAD 2002 Esp\acad.exe
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            "M:\Archivos de programa\Procuno\BTwin\BtWin.exe"
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            Y:\Ingenieria
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            Y:\GABINETE\PROYECTOS
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\RunGoldmine.bat
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            M:\Documents and Settings\JOSE\Datos de programa\Microsoft\Internet Explorer\Quick Launch\Mostrar escritorio.scf
            M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\mm\Menu Gabinete.doc
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            ping -n 1 -w 5000 1.1.1.1 >nul
            M:\Documents and Settings\JOSE\Datos de programa\Microsoft\Internet Explorer\Quick Launch\Mostrar escritorio.scf
            M:\Documents and Settings\JOSE\Datos de programa\Microsoft\Internet Explorer\Quick Launch\Mostrar escritorio.scf

            ******
            Mostrarescritorio.scf is equivalent to ShowDesktop.scf in english

            Thanks
            Excuse my language. I'm from Canary Islands
            No dejes que tu felicidad dependa de lo que no depende de tí.

            Carbon Dudeoxide

            • Global Moderator

            • Mastermind
            • Thanked: 169
              • Yes
              • Yes
              • Yes
            • Certifications: List
            • Experience: Guru
            • OS: Mac OS
            Re: Executing a program, folder, document after a time specified
            « Reply #21 on: May 04, 2009, 07:00:44 AM »
            The batch file doesn't make any sense.

            All the 'waiting' is useless and unnecessary.

            What is the batch file supposed to do. Can you talk us through it?

            devcom



              Apprentice

              Thanked: 37
              Re: Executing a program, folder, document after a time specified
              « Reply #22 on: May 04, 2009, 07:10:08 AM »
              @Esgrimidor
              ping -n 1 -w n*1000 1.1.1.1 >nul

              where n is number of seconds to wait

              and what do you mean by "clean window", you mean cls command ?
              Download: Choice.exe

              Esgrimidor

                Topic Starter


                Hopeful

                Thanked: 1
                Re: Executing a program, folder, document after a time specified
                « Reply #23 on: May 04, 2009, 07:29:57 AM »
                The batch file doesn't make any sense.

                All the 'waiting' is useless and unnecessary.

                What is the batch file supposed to do. Can you talk us through it?

                Is for open a lot of programs I use in my work to be prepared.
                No dejes que tu felicidad dependa de lo que no depende de tí.

                Esgrimidor

                  Topic Starter


                  Hopeful

                  Thanked: 1
                  Re: Executing a program, folder, document after a time specified
                  « Reply #24 on: May 04, 2009, 07:33:06 AM »
                  @Esgrimidor
                  ping -n 1 -w n*1000 1.1.1.1 >nul

                  where n is number of seconds to wait

                  and what do you mean by "clean window", you mean cls command ?

                  A fellow answer that is

                  Start work.bat /MIN

                  this parameter is not possible in the bat created with yLaunch2
                  but it's possible inside the bat created.

                  Perhaps is better express as Show Desktop
                  No dejes que tu felicidad dependa de lo que no depende de tí.