• 0

Batch file to launch 2 programs


Question

8 answers to this question

Recommended Posts

  • 0

@echo off

START X:\"Path to your program"\"Program Directory"\app.exe

START X:\"Path to your program"\"Program Directory"\app.exe

Not sure how much of a delay there will be, but it will launch 2 programs from one batch.

  • 0

thats roughly what i was gonna say Jaded1.. but it would start but apps straight after each other;

i don't remember them fully but you could use a command like sleep or pause inbetween them, although i remember pause needs someone to press a button for it to continue with the script.

Trix

  • 0
  Trix said:

thats roughly what i was gonna say Jaded1.. but it would start but apps straight after each other;

i don't remember them fully but you could use a command like sleep or pause inbetween them, although i remember pause needs someone to press a button for it to continue with the script.

Trix

I knew someone would know the pause trick. It's been a while since I messed with batch files.

It should launch them in order and yes you can use switches if I remember correctly.

  • 0

It's also possible with NirCmd without displaying anything on the screen. :)

  Quote
NirCmd is a small command-line utility that allows you to do some useful tasks without displaying any user interface. By running NirCmd with simple command-line option, you can write and delete values and keys in the Registry, write values into INI file, dial to your internet account or connect to a VPN network, restart windows or shut down the computer, create shortcut to a file, change the created/modified date of a file, change your display settings, turn off your monitor, open the door of your CD-ROM drive, and more...

Download NirCmd and copy NirCmd.exe to your System32 directory.

Create a new shortcut: NirCmd.exe execmd start C:\Windows\System32\Calc.exe && NirCmd.exe cmdwait 3000 exec show C:\Windows\System32\MSPaint.exe

This example starts the Calculator, waits 3 seconds and starts Paint.

  • 0
  DWk said:

I wanna launch an application....and say 3 seconds later, launch another one.

Is there a way to do this?

Thanks :D

You can use Shell commands in Visual Basic i.e

You would have to create a new module and insert following: -

Sub Auto_Open

'Opens program

x = Shell("C:\UserGuide.pdf")

'pause

Application.Wait Now + TimeValue("00:00:03")

End Sub

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

    • No registered users viewing this page.
  • Posts

    • On the 25H2 release, the "Insider Preview" references in the system has been removed. This usually indicates that the public release will be ready within 2 months.
    • Microsoft: Windows Autopatch is the safest way to upgrade enterprise PCs to Windows 11 by Usama Jawad A few hours ago, Microsoft published a guide for IT admins explaining how they can use Intune to upgrade Windows 10 devices to Windows 11, while also migrating from Active Directory (AD) to a cloud-native system like Entra ID. The company has also published a similar guide, but switched the tool to Windows Autopatch, claiming that it is the fastest and safest way for enterprise PCs to update to Windows 11. For those unaware, Windows Autopatch is a way to automate updates while empowering IT admins to ensure that endpoints are healthy and compliant through ring-based, staggered deployments. IT admins also have the ability to reverse updates easily if something does go wrong. In the current scenario of upgrading enterprise PCs to Windows 11 using Autopatch, Microsoft has outlined a four-step process. The first involves assessing Windows 11-readiness across your organization, assigning Entra ID groups to devices, and then mapping these groups to rollout rings in Autopatch. Next, IT admins should segment devices into Windows Autopatch groups, while also defining staggered rollout policies controlled through rollout rings. At a base level, there should be two groups: devices that meet the criteria of Windows 11 and should upgrade to it, and Windows 10 hardware that doesn't meet the criteria and should receive Extended Security Updates (ESUs). Devices should be spread in a logical manner across various rings, with each group having a dedicated update policy. The third step involves defining the speed of staggered update rollouts. This can be managed through the Intune admin center, which gives you control over sequencing, pace, and deferrals. Finally, IT admins should monitor the rollout of the Windows 11 update through the Windows Autopatch feature update reporting module. It contains the update status across devices, trendlines within historical views, and remediation guidance for errors. Microsoft believes that this combination of Windows Autopatch groups and Intune is the best way to upgrade to Windows 11, so IT admins should get started right away as support for Windows 10 is ending on October 14, 2025.
    • TDP of this CPU is 60 watts higher than Ryzen 7600. At s usage rate of four hours per day, at a cost of twelve cents per KWh, the Intel cost $10.51 more per year to use. I don't see a real advantage to Intel here.
    • Lmao. Cries about not playing those games not installed and yet don't ever want to touch them.
    • If I want to merge folder trees that have a similar structure, Beyond Compare is always my first choice. It's not free but it's awesome. If I want to just scan a whole drive/folder and find duplicates that are taking up space, I like Czkawka.
  • Recent Achievements

    • First Post
      Gladiattore earned a badge
      First Post
    • Reacting Well
      Gladiattore earned a badge
      Reacting Well
    • Week One Done
      NeoWeen earned a badge
      Week One Done
    • One Month Later
      BA the Curmudgeon earned a badge
      One Month Later
    • First Post
      Doreen768 earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      650
    2. 2
      ATLien_0
      261
    3. 3
      Xenon
      165
    4. 4
      neufuse
      142
    5. 5
      +FloatingFatMan
      107
  • Tell a friend

    Love Neowin? Tell a friend!