Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to do shortcut bat files to choose next login OS - dual boot 7 - 8

28 Nov 2014   #1
glnz

Dual boot - Win 7 Pro 64-bit and Win 10 Pro 64-bit
 
 
How to do shortcut bat files to choose next login OS - dual boot 7 - 8

I have dual boot Win 7 Pro 64-bit and Win 8 Pro 64-bit on a Dell Optiplex 7010 MT.

How can I write two batch files on the desktop of EACH OS to tell it to reboot either into Win 7 or into Win 8? (Four batch files total, two on each desktop.)

Need it because I frequently remote into this machine and have no way of rebooting efficiently into the desired OS.

I now can do the following manually in each OS:
***System Properties - Startup and Recovery - Settings - System Startup - Default Operating System - select which one - OK - manual Restart***
but it takes too long.

I'd like some batch files that do all of that for me.

Thanks!!


My System SpecsSystem Spec
.
29 Nov 2014   #2
MilesAhead

Windows 7 32 bit
 
 

It sounds like a mouse macro record/playback freeware would be the easiest way. There are quite a few for download. Start recording then do the mouse clicks and save, for each OS boot. It may be easier to get the mouse clicks right than trying to run batch commands.

Check the free download sites for mouse macro record/playback utilities.
My System SpecsSystem Spec
29 Nov 2014   #3
glnz

Dual boot - Win 7 Pro 64-bit and Win 10 Pro 64-bit
 
 

Miles - Thanks for the suggestion, and I like your photo of Mr. D.

But to start I'd like to hold out for true .bat files that do the same thing as the steps I outlined above. and since I posted the above, I learned there's yet another set of steps that almost does the same thing:
*** Run - msconfig - Boot - [select the OS] - Apply* - OK - manual Restart***
* "Apply" is dicey - it's greyed out unless I toggle something else on and off. But I imagine if I practiced I'd figure that one out.
However, Mr. Miles, if you know of a mouse-following recorder that WRITES THE BAT FILE AS AN EDITABLE FILE and does NOT focus on where the mouse moved on the screen, please let me know - that might be the best start and very useful for the future. Reminder that I have both Win 7 Pro 64-bit and Win 8 Pro 64-bit.

Again, many thanks.
My System SpecsSystem Spec
.

29 Nov 2014   #4
MilesAhead

Windows 7 32 bit
 
 

Even better you can post a request to have the program written for you on DonationCoder.com. See the Coding Snacks section. Here's the Link to the Post New Requests Here subforum, but please read the guidelines before posting.

I have been on that site for years. Sometimes I write the requested program but most are done by the moderator, skwire. Usually it's done in AutoHotkey, which is a free Windows scripting language designed for hotkey and macro stuff.
My System SpecsSystem Spec
29 Nov 2014   #5
glnz

Dual boot - Win 7 Pro 64-bit and Win 10 Pro 64-bit
 
 

Miles - did as you suggested. Shall post back here if those good folks come up with the answer.

But other folks reading this thread should chime in - what do you think?
My System SpecsSystem Spec
30 Nov 2014   #6
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by glnz View Post
Miles - did as you suggested. Shall post back here if those good folks come up with the answer.

But other folks reading this thread should chime in - what do you think?
That's multitasking.
My System SpecsSystem Spec
01 Dec 2014   #7
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Hey guys,

Booting into another OS through batch files, I'd think it would not be possible with commands -- that's before I did a bit of Google-ing. The BCDedit command is likely able to help with your intention, Glnz.

Did you ever try STTR's suggestion to your cloned question at Superuser?
Code:
bcdedit /default {GUID}
Where GUID (which stands for Globally Unique Identifier, in case you wonder) must be substituted for the unique hexadecimal string that is assigned to the relevant boot entry in favour. This string can be found by running 'Bcdedit /v' on an elevated command prompt. The GUID will be the first sequence of hex-characters under each boot entry and to the right of 'identifier'.
My System SpecsSystem Spec
Reply

 How to do shortcut bat files to choose next login OS - dual boot 7 - 8




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Not able to see Windows 7 files from xp in dual boot pc
I started windows xp and opened program files where 7 is installed but can't see any installed application's folder.
General Discussion
dual boot not working....cant choose between the choices
hello. tried a dual boot setup. when the black screen shows after bios runs, the one that offers the choice of 2 systems. there is no way to choose one over the other. down arrows dont do anything, enter does nothing, tab does nothing either. so after 30 seconds the screen changes to the windows...
Installation & Setup
Sharing apps and files between Windows 8/7 dual boot
Hey guys, I had this Windows 8 installed on a separate drive volume I reserved 18000MB to it which appears as drive G: in Win 7. In this way, I could keep both Windows 8 and 7 separately. Now the problem is, when I boot into Windows 8, the system does not see the normal drive C. Instead it sees...
General Discussion
Dual boot - how to hide files
hey i just split my (originally xp) hdd to 2 partitions C and D.. i have my regular xp on C and I installed 7 on D.. but the problem is that i dont want any files/folders to be seen when im on xp.. so basically i wanna hide everything that win7 has and when im on xp i dont wanna see the...
Installation & Setup
Relocate System Files on a Dual Boot
I've replaced Win7-32 with 64 a few days ago after formatting the drive. I have four partitions on three discs. The largest dusk has two – a very small one with XP and a very large where I save all my stuff. The problem appeared when I tried to use Windows Backup to save an image file of Win7....
Installation & Setup
Dual boot problem, XP and 7, cannot choose between them
Hey all, Yesterday I attempted a dual-boot configuration. I shrunk my C: drive which had Windows 7 on it, and then booted up and installed Windows XP on the new partition. Everything was fine, XP started up brilliantly. I attempted to try the EasyBCD thing, but it kept booting up Windows XP...
Installation & Setup


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App