batch file - auto run a bat script in windows 7 at login -
i have acquired windows 7 laptop late grandmother. have been using work , other things. decided create vm using virtualbox , want create user on (windows 7 host) machine when log user autoruns .bat script start vm. make clear want run if user "vm" logs in , not normal user , super awesome if autostart in full screen. have shortcut on desktop executes command:
"c:\program files\oracle\virtualbox\virtualbox.exe" --comment "vm" --startvm "12dada4d- 9cfd-4aa7-8353-20b4e455b3fa"
but how make autorun.bat when log user "vm"?
to run batch file when vm
user logs in:
drag shortcut--the 1 that's on desktop--(or batch file itself) start - programs - startup. when login user, launch batch file.
another way same thing save shortcut or batch file in %appdata%\microsoft\windows\start menu\programs\startup\
.
as far getting run full screen, depends bit mean. can have launch maximized editing batch file this:
start "" /max "c:\program files\oracle\virtualbox\virtualbox.exe" --comment "vm" --startvm "12dada4d-9cfd-4aa7-8353-20b4e455b3fa"
but if virtualbox has full-screen mode (where hides taskbar), you'll have command-line parameter on virtualbox.exe. i'm not familiar product.
Comments
Post a Comment