Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,557 of 68,980    |
|    Grant Taylor to Peter    |
|    Re: How to Test Whether a Drive Exists    |
|    06 Jun 20 12:28:33    |
      From: gtaylor@tnetconsulting.net              On 6/5/20 8:04 PM, Peter wrote:       > How can I test in a batch file whether an external USB drive does       > not exist because: 1) it’s not currently connected to the PC or 2)       > it is connected but it’s locked by a program such as BitLocker       > (in Windows 10)?              I don't know if this will help or not. I used to do something to test       if a drive and / or directory exists (it's been too long and I don't       remember exactly what) by checking for either "NUL" (I think it was one       "L") or "." existed.              Maybe that will help you test if the drive is connected or not. I don't       know how to tell if it's locked or not.              You might also explore commands to have Disk Manager show you       information about connected drives.                            --       Grant. . . .       unix || die              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca