I have a file named hdd_list.txt.
Index: 0
Device Name: \Device\Harddisk0\Partition0
Drive: entire disk
Label:
Type: Harddisk
Size: 55.899GB
Index: 1
Device Name: \Device\Harddisk0\Partition1
Drive: C:\
Label:
Type: Harddisk
Size: 55.897GB
Index: 2
Device Name: \Device\Harddisk1\Partition0
Drive: entire disk
Label:
Type: Harddisk
Size: 465.761GB
Index: 3
Device Name: \Device\Harddisk1\Partition1
Drive: E:\
Label: Backup
Type: Harddisk
Size: 465.758GB
I need to retrieve Index number corresponding to "c:\" and then subtract it minus 1 to get Index for the entire disk.
Any ideas ?