kevinoid / remove-nonpresent-devices

Script to remove non-present devices from a Windows computer system
MIT License
31 stars 10 forks source link

Tell the user if devcon.exe not found #9

Open reedy opened 11 years ago

reedy commented 11 years ago

If you run the file without devcon.exe actually existing, you get no output, and there's no clear indication of what is actually happening...

C:\Users\Administrator\Desktop>removedevices.js /verbose

C:\Users\Administrator\Desktop>

In made up pseudo code: if not file exists("devcon.exe") { echo "devcon.exe is missing..."; return; }