How do I get foobar to startup on loadup
Reply #9 – 2004-11-15 02:07:50
While I understand that you are badly hunting a solution, making somewhat redundant posts like "I really need help with this badly." and "What am I doing wrong someone must know!" might get a little frustrating. That aside: You obviously need to have minimise to system tray enabled in preferences, but i assume you have done this already. It would seem that starting Foobar2000 minimised does not work, nor does starting Foobar2000 with /command:Foobar2000/Hide. It would seem you must instead do both. Unfortunately, as far as I can tell, you cannot simply do this in a batch file because the interpreter waits for GUI applications to terminate before continuing in scripts; even using the 'start' command does not help, unless you want a new window hanging around. One solution is to use a wsh (Windows scripting host) script. Wsh should hopefully already be installed on your system; it appears to come preinstalled with XP, though I am not sure about earlier versions of Windows. You can either place this script directly into your Startup folder or make a shortcut to it. An example VBScript follows (save it as text with a .vbs extension):dim progpath progpath = chr(34) + "c:\program files\foobar2000\foobar2000.exe" + chr(34) dim shell set shell = CreateObject("WScript.Shell") shell.Run(progpath) rem WScript.Sleep(500) shell.Run(progpath + " /command:Foobar2000/Hide") Obviously, you need to change progpath for your system (do not remove the chr(34) bits). If this does not work as is, you might need to remove the rem in front of the WScript.sleep(500); I have commented this out because it is not required on my system, but if Foobar2000 takes a while ot start on your system, it may be required. That line causes the script to wait for half a second before continuing to the next line. Hope this helps. Jamie