when I type attrib AutoRun.inf -H
is says not resetting system file
Sorry that's my fault I should have thought it might be marked as a system file.
type
C:\then
attrib autorun.infyou'll see something like this, maybe not all of these letters. You should definitely see an S, and maybe an H and an R at the left side.
A SHR C:\autorun.infIf you see an S to the left type
attrib -S autorun.infthen if you see an H type
attrib -H autorun.infand if you see an R type
attrib -R autorun.infThe A does not matter if it is there. Remove it by the same method if you feel like it.
now if you do this
attrib autorun.infthe letters apart from the A should have gone, and this should now work.
del autorun.infIf all this doesn't work, try it in safe mode (where you press f8 as the PC starts up)