I have 4 programs I frequently open when I'm doing development. I didn't feel like actually doing some development one evening so I wrote this script:
test.bat
start /d "C:\eclipse" eclipse.exe
start /d "C:\Program Files (x86)\Pidgin" pidgin.exe
start /d "C:\wamp" wampmanager.exe
start /wait /d "E:\websites\scripts" tunnelier.vbs
tunnelier.vbs
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """C:\Program Files (x86)\Bitvise Tunnelier\Tunnelier.exe"""
WshShell.AppActivate "Tunnelier"
WshShell.SendKeys "{ENTER}"
and I'm finding that it successfully opens all of the programs, but there are two problems.
So my question is twofold;
I've tried to research both topics and have failed, so any help is very appreciated!
-profile and -loginOnStartup, this also means you don't need VBScript script anymore.C:\Program Files (x86)\Bitvise Tunnelier\Tunnelier.exe -profile=profile_file.path -loginOnStartup
Also check out : http://www.bitvise.com/files/tunnelier-params.txt
Finally, your script could be something like that:
start /d "C:\eclipse" eclipse.exe
start /d "C:\Program Files (x86)\Pidgin" pidgin.exe
start runas /profile /savecred /user:Administrator "c:\wamp\wampmanager.exe"
start /d "C:\Program Files (x86)\Bitvise Tunnelier" Tunnelier.exe -profile=profile_file.path -loginOnStartup
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With