DIGIT-ARC read-only archive · snapshot: July 23, 2026

How to delete autorun.inf with command prompt

13 posts · originally from https://geek.digit.in/community/threads/how-to-delete-autorun-inf-with-command-prompt.73433/

CadCrazy
CadCrazy Original post #1
Nov 17, 2007 at 12:06 PM
I used dir/ah to view hidden files on c drive. Autorun.inf files is present there but when i try to delete it using "del autorun.inf " command , i get error file not found. plz help
vish786
vish786 #2
Nov 17, 2007 at 2:05 PM
change attribute of autorun.inf & then u can easily delete it.
T
Nov 17, 2007 at 2:54 PM
u can change the attribute usin attrib commmand in cmd...

fr more help u cn type in attrib/? in cmd prompt n u'll get a complete list of the symbols whch cn be used wid the attrib command...

try out it will help!!
ravi_9793
Nov 17, 2007 at 2:57 PM
let us take you want to delete autorun.inf file from D:\ drive
For this type:
del d:\autorun.inf
Vishal Gupta
Nov 17, 2007 at 3:13 PM
Give following commands:

Code:
attrib -s -h -r autorun.inf
del autorun.inf
It should work. :)
H
Nov 17, 2007 at 5:59 PM
try this it will work

erase aurorun.inf /f /a -r
that will delete file from the disk without asking u
U
utlnoel #7
Jan 16, 2009 at 11:39 AM
Thanks it works...
S
Shash #8
Jan 16, 2009 at 11:13 PM
hii everyone. I have the same problem on my pen drive.
I get the attribute command to work.

But when i type 'del autorun.inf',
I get a msg that the file is inaccessible, because it is being used by another program or process.
Can anyone help?
ashisharya
Jan 17, 2009 at 12:37 AM
attrib -s -h -r autorun.inf
del autorun.inf
infra_red_dude
Jan 17, 2009 at 8:31 AM
hii everyone. I have the same problem on my pen drive.
I get the attribute command to work.

But when i type 'del autorun.inf',
I get a msg that the file is inaccessible, because it is being used by another program or process.
Can anyone help?
Then best thing is to boot into Safe Mode and then goto command prompt and change to that drive and type:

Code:
attrib -a -s -h -r autorun.inf

*then*

Code:
del autorun.inf
L
loGos #11
Jul 23, 2009 at 9:25 AM
helo= there. I have tried many things now to remove trojan virus it does not budge to any of it. is there anything else i could do.
phuchungbhutia
Jul 23, 2009 at 11:56 AM
If some process is using it then kill that process and del it . . Unlocker can do that . .
P
paroh #13
Jul 23, 2009 at 1:54 PM
hii everyone. I have the same problem on my pen drive.
I get the attribute command to work.

But when i type 'del autorun.inf',
I get a msg that the file is inaccessible, because it is being used by another program or process.
Can anyone help?

I recommened u to install USB Disk Security.