Maybe I should elaborate a bit more about the problem I'm trying to solve 
I'm right now using a program called "USBVirusScan" that runs any command I want whenever a drive is plugged into the PC.
So I made a script that checks all the drives in the PC for autorun.inf to get rid of any potential viruses because I swop flash discs in and out of my pc A LOT.
It works 100% except for the fact that it runs whenever a CD is inserted as well, and naturally windows pops up with a error when my script tries to delete the autorun.inf file, very annoying.
Does anyone have any suggestions or maybe a better program that could do the job?
Even if I get that chkntfs problem on my pc fixed I would still have to do some string manipulation and that is not one of my better hobbies...
I'm right now using a program called "USBVirusScan" that runs any command I want whenever a drive is plugged into the PC.
So I made a script that checks all the drives in the PC for autorun.inf to get rid of any potential viruses because I swop flash discs in and out of my pc A LOT.
It works 100% except for the fact that it runs whenever a CD is inserted as well, and naturally windows pops up with a error when my script tries to delete the autorun.inf file, very annoying.
Does anyone have any suggestions or maybe a better program that could do the job?
Even if I get that chkntfs problem on my pc fixed I would still have to do some string manipulation and that is not one of my better hobbies...