Because of the way Windows grabs drive letters for USB externals being plugged in, sometime the following doesn't work. Drive j: sometimes is a external USB hard drive and sometimes is a Kingston USB card reader with no card in it.
I just want to test if an external drive is is attached on J: and find out if a file exists on the drive. But if the external is not plugged in, and a cardreader is plugged in and gets a hold of drive j: the entire thing errors out with a No Disk error window:@set h=%@files["j:\externaldrivename.txt"]
Is there a way to trap this error? (these usb card readers have a way of grabbing a bunch of drive letters even if nothing is going on)There is no disk in the drive. Please insert a disk into the drive \device\harddisk6\dr10