I am making backups to two alternating USB sticks. The problem is that the sticks get different device letters although I use the same connection. This means that before making the backup I must check the letter on Explorer (I use Windows 8.1), then I have to feed it to the Perl script by hand; I want the script to find the letter all by itself.
I tried the following code but then I got a pop-up window telling me to insert a device:
my $dev = ''; $dev = 'G' if( -d 'G:\\af' ); $dev = 'H' if( -d 'H:\\af' );
In reply to Find device letter by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |