MPW
Well-known Member
- Joined
- Oct 7, 2009
- Messages
- 568
- Office Version
-
- 365
- Platform
-
- Windows
Hi All,
I am using Excel 2003 to backup files automatically to 2 external drives.
The user initially selects the drives for the project to reside on. Since these removable drives could be unplugged and reattached, there is a strong chance that they will have different drive letters assigned.
Instead of requiring the user to continually browse for the drive I would like to use the HDD serial number (since it will never change) to locate the target and copy the files. I know that I could loop through the drives but I would rather just use the copy command.
Example: FileCopy "C:\Original_File", "E:\Copied_File"
My question is how do I write the command using the serial number instead of the drive letter.
I am using Excel 2003 to backup files automatically to 2 external drives.
The user initially selects the drives for the project to reside on. Since these removable drives could be unplugged and reattached, there is a strong chance that they will have different drive letters assigned.
Instead of requiring the user to continually browse for the drive I would like to use the HDD serial number (since it will never change) to locate the target and copy the files. I know that I could loop through the drives but I would rather just use the copy command.
Example: FileCopy "C:\Original_File", "E:\Copied_File"
My question is how do I write the command using the serial number instead of the drive letter.