Skip to content

Instantly share code, notes, and snippets.

@ndarville

ndarville/startup.bat

Last active Jun 24, 2020
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@ndarville ndarville commented Jul 28, 2017

@SimonGhoul

This comment has been minimized.

Copy link

@SimonGhoul SimonGhoul commented Jan 24, 2020

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

This comment has been minimized.

Copy link
Owner Author

@ndarville ndarville commented Jan 25, 2020

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.

@SimonGhoul

This comment has been minimized.

Copy link

@SimonGhoul SimonGhoul 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

This comment has been minimized.

Copy link
Owner Author

@ndarville ndarville commented Feb 3, 2020

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
You can’t perform that action at this time.