- Local time
- 1:09 AM
- Messages
- 31
Hi,
I have three external USB backup disks with some overlapping content. I only plug one at a time and they are all mapped to K: for bacKup. That's just the way I prefer it.
I use three different robocopy batch files to mirror files to the respective drive, and would like to remove the possibility of accidentally launching backup commands for drive 1 when I have drive 2 connected.
So the drives are all on K: but they have different labels. Is there a way to make a conditional statement that checks the label of the connected drive and only continues to the robocopy command if it matches a predefined label?
Or is this not doable in batch files?
I have three external USB backup disks with some overlapping content. I only plug one at a time and they are all mapped to K: for bacKup. That's just the way I prefer it.
I use three different robocopy batch files to mirror files to the respective drive, and would like to remove the possibility of accidentally launching backup commands for drive 1 when I have drive 2 connected.
So the drives are all on K: but they have different labels. Is there a way to make a conditional statement that checks the label of the connected drive and only continues to the robocopy command if it matches a predefined label?
Or is this not doable in batch files?
My Computer
At a glance
Windows 7 Pro 64-bitIntel i7 95018GBGigabyte Radeon HD7700
- Computer Manufacturer/Model Number
- built it myself
- OS
- Windows 7 Pro 64-bit
- CPU
- Intel i7 950
- Motherboard
- Asus Sabertooth X58
- Memory
- 18GB
- Graphics Card(s)
- Gigabyte Radeon HD7700
- Sound Card
- onboard Realtek HD audio chip
- Monitor(s) Displays
- 2 x Dell U2412M
- Screen Resolution
- 1920x1200
- Hard Drives
- 3 SSD
4 Western Digital Caviar Green
- PSU
- SeaSonic x650
- Case
- Fractal Design R3 case
- Cooling
- Magehalems rev. B CPU cooler