I am trying to write a BAT script to produce a grub4dos menu.lst file.
A boot entry in the menu.lst file typically contains a line like:
where x is the hard disk number(first disk hd0) and y is the partition number on the disk (first partition is 0). How can I find the disk and partition numbers of %systemdrive% ?
The script will be running under Windows Vista or 7.