Help with creating a batch file for a macro

The4rchitect

Honorable
Jan 22, 2014
43
0
10,540
Hello, my goal is to launch multiple desktop applications and launch a couple websites through google chrome with a single batch file. Basically I'm pulling up all the programs and websites I use when broadcasting games through twitch.tv, so what I'm looking at here is a list something like this:

Launch OBS (Open Broadcaster Software)
Launch Spotify
Launch Google Chrome (www.twitch.tv/Architect_Gaming/dashboard)
Launch Facebook (www.facebook.com/iceT4ever)
Launch Twitter (www.twitter.com/7he4rchitect)
Launch Magic: The Gathering Online

I've read very briefly on batch files, I'm aware that I open up a notepad, start off with @echo off, then following lines should start with START followed by whatever program I'm looking to launch (with apostrophes in case of spaces) something like this: (Windows 8.1 for reference)

img tag is not working for me so I guess I will just include the links

https://imageshack.com/i/hj5FNzCzp

After saving this file and double-clicking on the desktop icon to launch it, I get this result:

https://imageshack.com/i/ezN6yxO7p

It appears that Google Chrome is opening correctly, and navigating to google.com correctly, but my other two applications are not launching. I right-clicked on their desktop icons, went to properties and copied their filepath and pasted directly into my batch file:

https://imageshack.com/i/p2E9daqMp

What am I doing incorrectly? Thanks for the help, let me know if you need additional information or screenshots from me.

-Trevor (Architect_Gaming on twitch if you want to stop by!)
 
@echo off
start "C:\Program Files (x86)\OBS\OBS.exe"
start "%appdata%\Spotify\spotifylauncher.exe"
start "www.twitch.tv/Architect_Gaming/dashboard"
start "www.facebook.com/iceT4ever"
start "www.twitter.com/7he4rchitect"
start Magic thing whatever it is


if the webpages dont work remove the quotes just dont remove the quotes on the programs
 
Yeah, I don't know whats happening. I copied your text exactly into my batch file, and this is the result I get when I try to run it:

https://imageshack.com/i/p9N7ZPtKp

I have a 64 bit computer, I'm almost certain my file versions are all 64 bit, how can I check? I was unable to find it in properties by right clicking on the desktop icon. Thanks a lot for the reply and I appreciate the help!
 
Yes, I do need to download the 64 bit version of OBS, was holding off until I knew what this problem was, for my purposes the 32 bit version is working fine for me right now.

Were you able to find a solution?
 
ok, dont get the 64bit version of OBS! Here is your new script(bat1.bat):
@echo off
start %appdata%\Spotify\spotify.exe
start www.twitch.tv/Architect_Gaming/dashboard
start www.facebook.com/iceT4ever
start www.twitter.com/7he4rchitect
start C:\Windows\SysWOW64\cmd.exe /C bat2.bat
pause
right now make another batch file in the same place called bat2.bat and copy this:
@echo off
%programfiles%\OBS\OBS.exe
pause
 
Hello, I apologize for the delay in my response, class started on Monday and I haven't had much time.

So, I copied your two blocks into seperate batch files. Running the first gives me this:

https://imageshack.com/i/id8G6cLLp

after clicking ok, i get this:

https://imageshack.com/i/p8mt0ao7p

so the web browser is definitely opening correctly, but for some reason I'm still unable to run any programs... running the second batch file only opens up another cmd prompt exactly like the first one from the other batch file (C:\windows\system32\cmd.exe)

I have absolutely no idea why it doesn't work :/