home bbs files messages ]

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    
      
   or   
      
   VBoxHeadless -s    
      
   This launches the VM without attaching its display to a window. Now all you   
   have to do is set this command as a boot-time service that runs in the   
   background, and you'll be set.   
   Share   
   Improve this answer   
   Follow   
   answered Nov 19, 2009 at 3:09   
   Mies's user avatar   
   Mies   
   70166 silver badges44 bronze badges   
      
       4   
       Is there a way to add this as a parameter (or something) to the machines   
   settings? –    
       MrGlass   
       Aug 15, 2012 at 16:30   
      
   Add a comment   
   93   
      
   Old question, but an update is in order:   
      
   As of VirtualBox 4.2, you can start a headless machine from the GUI by holding   
   Shift while you click the Start button.   
      
   Horribly unintuitive, but that, and other new features, are outlined in an   
   Oracle blog post.   
      
   EDIT: As of VirtualBox 5.0, there's a dropdown on the Start button that allows   
   you to choose how to start the VM, including in headless mode.   
   Share   
   Improve this answer   
   Follow   
   edited Jun 13, 2016 at 20:36   
   answered Jan 7, 2013 at 0:31   
   Tarka's user avatar   
   Tarka   
   1,57511 gold badge1111 silver badges1010 bronze badges   
      
       4   
       How to open the window after I start a headless machine ? –    
       wener   
       Apr 10, 2014 at 1:21   
       3   
       In VirtualBox 5.0, there is a drop down arrow next to the start button.   
   Using that, you can select between a normal, headless, or detachable start.   
   –    
       Bastian35022   
       Nov 13, 2015 at 8:50   
      
   Add a comment   
   19   
      
   You can tell VirtualBox to start the VM in headless mode, not using the gui   
   start button - but its the same.   
      
   VBoxManage startvm  --type headless   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca