Attached is a grub4dos batch file that allows the user to set any 1 of the 4 primary partition entries as the first entry in the partition table.
This allows any one of the four partitions on removable media such as multiple partition USB flash drives or SD cards, to be set as the Windows visible 1st partition.
I have 'borrowed' the ViewMBR code from jaclaz/WKS and added some extra code to do the partition table swap.
To see the usage type SetPtn1.g4b in the grub4dos console:
SetPtn1.g4b (hd0) - prompts user for partition to set as first ptn
SetPtn1.g4b (hd0) 1 - swap 2nd ptn with first ptn + user must confirm
SetPtn1.g4b (hd0) 1 SURE - no confirmation prompt before updating MBR
You can add this to your grub4dos multiboot menu if you have a multipartition USB flash drive and want to boot Windows or WinPE from the 2nd, 3rd or 4th partition. Use with care as this will overwrite the MBR!