How to Confirm a Disk exist£¿ such as D:
I create a installer, $INSTDIR set D:\netvoice, but I want to check if there is a disk of D: in target computer?
How to Confirm a Disk exist£¿ such as D:
2 posts
2 posts
This should fix your problem.
IfFileExists D:\*.* DriveOK DriveNotOK
DriveOK
#Code if drive exists
goto DriveCheckEnd
DriveNotOK:
#Code if drive not exists
goto DriveCheckEnd
DriveCheckEnd: