Skip to content

Instantly share code, notes, and snippets.

@ndarville
Last active June 24, 2020 14:09
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndarville/988684f7c809ff0d471dba54ce1adb2e to your computer and use it in GitHub Desktop.
Save ndarville/988684f7c809ff0d471dba54ce1adb2e to your computer and use it in GitHub Desktop.
Batch script to delay startup of applications after boot
@echo off
timeout /t 120
start itunes
start /min %APPDATA%\Dropbox\bin\Dropbox.exe
start /min "" "C:\Program Files (x86)\Battle.net\Battle.net"
start /min "" "%LOCALAPPDATA%\Discord\app-0.0.297\Discord.exe"
@ndarville
Copy link
Author

ndarville commented Jul 28, 2017

@JXWw3wLD9LArcR7c
Copy link

Using start for me makes it so the program runs through cmd intead

So I just do cd and then I type program.exe
I learned about "/min" command though, that's cool
(I ended here trying to look for a post I made on Reddit, can't find it. Some dumb asshole basically tried to help and when I told him that it didn't work and I did something wrong he was just like "You clearly don't know anything about batch." Well, didn't I say that at the very beggining? Lol. I figure out how to make it today after so many months, I gave up because I was too busy to be bothered and that guy basically told me to fuck off)

@ndarville
Copy link
Author

Figuring out tech stuff through online communities is the worst, glad it worked out.

The Discord command is kind of outdated, because the versioning changes with every update if I recall correctly. But as a general example, it does the job.

@JXWw3wLD9LArcR7c
Copy link

JXWw3wLD9LArcR7c commented Feb 3, 2020

You should use "%LOCALAPPDATA%\Discord\Update.exe" --processStart Discord.exe instead

This is what discord uses when it opens at startup (I found out by right clicking the shortcut that was made on my desktop)

@ndarville
Copy link
Author

Oh awesome, I’ll start using that then, cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment