Results 1 to 3 of 3

Thread: Batch file issue

  1. #1
    Succeded in braking Windo TZ Veteran Dehcbad25's Avatar
    Join Date
    Apr 2002
    DE - USA

    Batch file issue

    Well, we don't have a DOS section
    we have a bunch of programs that are VB based, and since they require connection to the database (oracle) every now and them we have to restart them. Also, when an update requires to restart the computer we have to re-open every one of this programs one by one.
    So, I decided to create a batch file, and with 2 click open them all. No problem, right??? welll, nooo
    This programs since they have to connect to the database, and create a comom temp file, need to be open one at a time.
    My problem is that I haven't got a clue how to add a wait time in the batch file. If I add the switch /WAIT it waits until it terminates, which is no an example lets imagine I want to open 4 programs called techzonez1.exe; techzonez2.exe; techzonez3.exe; techzonez4.exe and the batch file is called techzonez.bat, which has this:
    START C:\Techzonez\techzonez1.exe
    START C:\Techzonez\techzonez2.exe
    START C:\Techzonez\techzonez3.exe
    START C:\Techzonez\techzonez4.exe
    I have to use START because if not used, it waits until techzonez1.exe terminates before starting techzonez2.exe.
    What I would like is to add a wait of 45 second for the first one (to open a connection to the databse) and then 15 second to the rest.
    How do I do that??

  2. #2
    Titanium Member
    Join Date
    Jul 2002
    blk helo target, WA
    Here's start batch I used and it works.

    "C:\Program Files\ePrompter\ePrompter.exe.lnk"
    "C:\Program Files\Bandwidth Monitor Pro\Bandwidth Monitor Pro.exe.lnk"
    "C:\Program Files\coolmon\coolmon.exe.lnk"
    "C:\Program Files\Trillian\Trillian.exe.lnk"
    "C:\Program Files\Sygate\SPF\Smc.exe.lnk"
    "C:\Program Files\Common Files\Symantec Shared\NMain.exe" /dat:C:\Program Files\Norton AntiVirus\navui.nsi /nosysworks.exe.lnk\NMain.exe.lnk"
    *edit - nevermind, I read the rest of your post

    I don't know - maybe somthing this?

    start YzDock.exe
    cd "C:\Program Files\yztbr103"
    start yztoolbar.exe
    cd "C:\Program Files\ePrompter"
    start ePrompter.exe
    cd "C:\Program Files\CoolMon"
    start CoolMon.exe
    "D:\Program Files\yzdck\runprogram.bat" D:\Games\Steam Steam.exe " -applaunch 70 -game ns"
    Last edited by lynchknot; July 30th, 2004 at 01:19 AM.

  3. #3
    Succeded in braking Windo TZ Veteran Dehcbad25's Avatar
    Join Date
    Apr 2002
    DE - USA
    -applaunch 70 -game ns"
    What are those commands used for??

Posting Permissions

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