Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,986 of 68,980    |
|    Florin Cocy to All    |
|    Re: How to start VirtualBox minimized    |
|    15 Dec 22 18:51:21    |
      From: cocywork@gmail.com              Pe sâmbătă, 31 mai 2014, la 22:29:31 UTC+1, Todd Vargo a scris:       > On 5/31/2014 11:38 AM, Gary Kuznitz wrote:        > > That worked very nicely. Thank you.        > >        > > I'd like to understand a little of what this bat file does.        > >        > > When it says:        > > if not "%minimized%"=="" goto :minimized        > > set minimized=true        > > start /min cmd /C "%~dpnx0"        > > goto :EOF        > > :minimized        > >        > > Does this mean the first time through %minimized% will always equal null       so it will goto minimized every time?        > > Will it ever get to the set minimized=true statement? How?        > > If it does get to the set minimized=true statement it seems to me it       should call this bat file with the /min on the start.       > Unless the batch is run from a command prompt with %minimized% variable        > defined, it will always run this section to define the variable and then        > restart the batch in a new minimized process with the variable defined.        > But since the original process will have already been displayed before        > restarting the batch, there is not much point in doing this.        >        > As you mentioned, you found it on the internet so only the the author        > knows why they wrote this code. All you really need is the second start        > command with /min inserted.       > @echo off        > :: This will start a VirtualBox guest minimized       > @start /min /wait /b C:\Programs\VirtualBox\VirtualBox.exe --startvm        > "c2f7cf76-be3e-496f-8e77-f2823e65c5bd" /SEPARATE/N        >        > Note, unless you have the batch doing other important stuff, you could        > just create a shortcut which is set to open VirtualBox minimized instead        > of using a batch file.       > --        > Todd Vargo        > (Post questions to group only. Remove "z" to email personal messages)                     On Linux :                            First, make sure that the Virtual Box binaries are in your path. This is done       by default on Linux, but in Windows, you might have to manually add the       installation directory's bin folder to your path.              Then, you need to know either your Guest OS name or UUID number. You can find       both of these by typing              VBoxManage list vms              into a terminal. From there, simply type              VBoxHeadless -s |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca