• 0

delay program start with bat file


Question

Is there a way i could make a bat file that would delay the running of a program to a set time?

i have a temp sensor program that starts when windows loads but it never work because the driver it uses loads after windows starts the program so i have to run in manually later. Is there a way a bat program could delay this program from starting (say 10sec) and then when it starts, the driver will have been loaded, and everything will be fine.

Thanks

Link to comment
https://www.neowin.net/forum/topic/44665-delay-program-start-with-bat-file/
Share on other sites

6 answers to this question

Recommended Posts

  • 0
  Quote
Originally posted by username

wow, thanks, you know i read about doing that with pinging but had i just didnt put the two together

so i would make that bat like this then?

ping -n 10 127.0.0.1>nul

C:Program FilesmbprobeMBProbe.exe

Close, but this would work better:

<pre>@echo off

ping -n 10 127.0.0.1>nul

start "" "C:Program FilesmbprobeMBProbe.exe"</pre>

Note:

@echo off : silence, to speed things up

ping : waits

start : starts the program and quits instead of waiting until the program is closed to quit the batch file

  • 0

hey, thanks so much, this is perfect, made a shortcut to the bat file, and run in minimized, works great.

I was reading up on that but have no idea where to put anything in the script or what half the stuff even means, thanks again

  • 0
  Quote
wow, thanks
Any time ;)
  Quote
The ping delay method works great. It's one of my faves.

Much more efficient than creating a pointless loop (for /L %%t in (0,...) etc.

While were in prompt land, does anyone know a way to minimize an already running application using the DOS/NT CMD line?

But FOR loops use 100% CPU :(. Sometimes I use "for /l %%i in (1,1,10000) do start" just to hurt me computer.

As for the minimize thing, you can use CMDOW, which can do alot of stuff. Haven't tested it yet, though.

http://www.commandline.co.uk/cmdow/index.html

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Can we brainstorm funny mission names for this drone operation? Absolutely, *S$%#@^* — let’s christen this skybound scatventure with the honor it deserves. Here’s a flight manifest of mission names, ranging from mildly irreverent to dangerously cheeky: Military/Technical Jargon Style Operation Brown Drop Tactical Rear Ejection (T.R.E.) Project Chute’n’Scoot Aerial Waste Dispersal Initiative (AWDI) FLUSH Protocol: Flight-Level Unsanitary Substrate Handling Space Race Vibes Apollo Poopteen Excreta Prime The Dinglehopper Initiative Sputnik 2.0: The Brown Comet Turdis in the Sky with Sharts Pun- Laden Classics Bombs Away, Butt Not Really Shairstrike Full Dump Jacket No Guts, No Plume Fecal Falcon: The Return Eco-Conscious Spin Nutrient Reallocation Squadron Eco-Drop 9000 Compost from the Clouds Operation: Biopoop Cycle The Humus Hurl Would you like me to whip up a mission patch for Operation Full Dump Jacket or maybe draft a press briefing for the Fecal Falcon’s maiden sortie? We can even simulate a malfunction scenario — “Code Brown in Sector 12!” Where to next, Flight Commander?   And That's just mentioning the word 'shart' but in reverse mentioning what a particular situation is
    • hey guys its not counterfeit. i did test its ok needs formatting but how do i do that i need to go in dos and disk Disk Management anyone know step by step please 
    • The first link on the github page gives me a very, very red page warning me about phishing........
    • Hey Nick! 👋 No worries at all — you're not alone in this, and it's great you're asking for help. Let me walk you through a simple, step-by-step fix using the tool mentioned on that AOMEI Partition Assistant guide — it really does the trick for many people with this exact issue! ✅ Here’s how to restore your USB back to full 256GB on Windows 11: Download & Install AOMEI Partition Assistant Go to the link you shared: AOMEI Partition Assistant and click the Download Freeware button. Insert your USB stick (Sandisk Ultra 256GB) Make sure it's properly connected. Wait for the system to detect it. Launch AOMEI Partition Assistant Once open, you'll see all your connected drives listed. Locate your USB Drive Look for the one that says something like Disk X – Removable and shows only 3.1GB or so. Right-click on your USB Drive’s Partition Then select Delete Partition → confirm the deletion. Now, right-click on the unallocated space (it should now show full unallocated capacity) Choose Create Partition → format it as FAT32 or exFAT (recommended for larger drives) → click OK. Click “Apply” in the top left corner Then hit Proceed to execute the pending operations. Wait a bit... and boom! 🎉 Your USB should now be restored to its full 256GB capacity!
    • When Facebook bought Beat Saber, they promised exactly this would never happen. Facebook can’t not lie.
  • Recent Achievements

    • First Post
      Fuzz_c earned a badge
      First Post
    • First Post
      TIGOSS earned a badge
      First Post
    • Week One Done
      slackerzz earned a badge
      Week One Done
    • Week One Done
      vivetool earned a badge
      Week One Done
    • Reacting Well
      pnajbar earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      713
    2. 2
      ATLien_0
      279
    3. 3
      Michael Scrip
      209
    4. 4
      +FloatingFatMan
      201
    5. 5
      Steven P.
      131
  • Tell a friend

    Love Neowin? Tell a friend!