Although usually people install Windows in partition
C,I think there'll be some problems if I just use
C:\\ as the boot directory.I've googled this but did not find the key. So how can I get the boot partition in Batch?
You can use the System Variable
It will (for example) return