I already know how to check if theres removable disks connected with cmd with the following command: wmic logicaldisk where drivetype=2 get deviceid, volumename, description
but now I would like to make a batch that checks if theres any removable disks connected it executes another command or runs another batch.
So it would be something like
if drivetype=2 exists then "command"
How would this be possible? Or is it even?
Im also interested in VBScript methods if batch is not possible.
I really hope there's a way to do this. Thanks in advance to anyone who can help me.