Go Back   Tech Support Forum > Microsoft Support > Windows 7 Support, Windows Vista Support

Accidentally deleted autorun.inf how to restore it?

This is a discussion on Accidentally deleted autorun.inf how to restore it? within the Windows 7 Support, Windows Vista Support forums, part of the Tech Support Forum category. I just accidently deleted autorun.inf from my pen drive, now everytime i try to open it i get the error


Closed Thread
 
Thread Tools Search this Thread
Old 07-27-2011, 03:52 PM   #1
Registered Member
 
Join Date: Jul 2011
Posts: 9
OS: Windows 7 SP1



I just accidently deleted autorun.inf from my pen drive, now everytime i try to open it i get the error window popping up all the time "F:\ Application not found." What am i supposed to do? Thanks

__________________
HiTom is offline  
Old 07-27-2011, 03:59 PM   #2
TSF Team, Emeritus
 
spunk.funk's Avatar
 
Join Date: May 2010
Location: Los Angeles
Posts: 28,819
OS: Windows 8 64, Windows 7 64 Bit SP1, XP SP3, Mac OSX

My System


With the USB drive plugged in, go to Start/Search and type chkdsk F: /R and press enter. Now type a Y to unmount the drive. Check Disk will try and fix any file errors. You should be able to then explore the drive.

spunk.funk is offline  
Old 07-27-2011, 04:15 PM   #3
Registered Member
 
Join Date: Jul 2011
Posts: 9
OS: Windows 7 SP1



Didnt work :(
__________________
HiTom is offline  
Old 07-28-2011, 01:46 AM   #4
TSF Team, Emeritus
 
spunk.funk's Avatar
 
Join Date: May 2010
Location: Los Angeles
Posts: 28,819
OS: Windows 8 64, Windows 7 64 Bit SP1, XP SP3, Mac OSX

My System


What is on the Drive? Why is there an Autorun file on there? Can you right click the drive and choose Explore? If so, copy the data off of the drive and then format the Drive, then restore the data.
spunk.funk is offline  
Old 07-28-2011, 11:58 AM   #5
Registered Member
 
Join Date: Jul 2011
Posts: 9
OS: Windows 7 SP1



Quote:
Originally Posted by spunk.funk View Post
What is on the Drive? Why is there an Autorun file on there? Can you right click the drive and choose Explore? If so, copy the data off of the drive and then format the Drive, then restore the data.

Already formatted it, didnt work :S

And no there isnt any Autorun file since i formatted it, and i can assure you there wasnt any atuorun file before just the one that i knew called "Autorun.inf" or something, but that is gone, and also for some strange reasons, i can open it but i have to right click and choose "Open in a new window", but if i simply double click on the F drive then the error msg will automatically pop up, what kind of problem is it? Its really annoying.... help me pleaseee
__________________
HiTom is offline  
Old 07-29-2011, 03:13 AM   #6
TSF Team, Emeritus
 
spunk.funk's Avatar
 
Join Date: May 2010
Location: Los Angeles
Posts: 28,819
OS: Windows 8 64, Windows 7 64 Bit SP1, XP SP3, Mac OSX

My System


Go to Start/Run and type CMD. In the command prompt and write the following.

attrib -s -r -h X:\autorun.inf

press enter and then write

del X:\autorun.inf

press enter and after this disconnect usb device from system and reconnect it.

Note: Please notice that X means the drive letter (F:\, G:\, etc).
spunk.funk is offline  
Old 07-29-2011, 03:31 AM   #7
Registered Member
 
Join Date: Jul 2011
Posts: 9
OS: Windows 7 SP1



Quote:
Originally Posted by spunk.funk View Post
Go to Start/Run and type CMD. In the command prompt and write the following.

attrib -s -r -h X:\autorun.inf

press enter and then write

del X:\autorun.inf

press enter and after this disconnect usb device from system and reconnect it.

Note: Please notice that X means the drive letter (F:\, G:\, etc).

Tried that one too, and it says when i enter

attrib -s -r -h F:\autorun.inf

File not found - F:\autorun.inf



*** is wrong??? :*(
__________________
HiTom is offline  
Old 07-29-2011, 04:09 AM   #8
TSF Enthusiast
 
Jay_JWLH's Avatar
 
Join Date: Apr 2008
Location: New Zealand
Posts: 994
OS: Windows 7 Professional SP1 - 64-bit

My System


If you just want to access the USB contents, you should be able to right click on it, and click Open. This should ignore any attempts to run the Autorun feature of your USB.

Are you by any chance using a U3 USB? What is the description of the USB device?
__________________
Jay_JWLH is offline  
Old 07-29-2011, 04:12 AM   #9
Senior Tech hardware team
 
Join Date: Oct 2010
Location: South Africa
Posts: 2,453
OS: Windows 7 Ultimate 64-bit

My System


Disable the Windows Autorun feature, that's what I always do to prevent that pesky popup asking how to open the contents of a CD / DVD or USB Stick. Was the autorun.inf file not perhaps part of a virus?
__________________
A+ Certified
Johnny1982 is offline  
Old 07-29-2011, 04:36 AM   #10
Registered Member
 
Join Date: Jul 2011
Posts: 9
OS: Windows 7 SP1



Quote:
Originally Posted by Johnny1982 View Post
Disable the Windows Autorun feature, that's what I always do to prevent that pesky popup asking how to open the contents of a CD / DVD or USB Stick. Was the autorun.inf file not perhaps part of a virus?

Im not sure if it was a virus, and for the type of device, i dont see any description of the pendrive, but i can open it by right click and choose open, thats the only way i can open it, but if i double click it, the error msg will pop up, i will try to disable the windows autorun stuff.
__________________
HiTom is offline  
Old 07-29-2011, 04:44 AM   #11
TSF Enthusiast
 
Jay_JWLH's Avatar
 
Join Date: Apr 2008
Location: New Zealand
Posts: 994
OS: Windows 7 Professional SP1 - 64-bit

My System


You could always just create a replacement Autorun.inf file using notepad. You can also find some additional information at the following page:
USB Drive AutoRun.inf Tweaking
Then you can set the USB icon, USB name, what the autorun tries to open, and more. So if on the USB there is an icon file, and a setup.exe file or something else it used to start automatically, you can easily recreate it by linking to all of those things. Or.... just leave it empty.
__________________
Jay_JWLH is offline  
Old 07-29-2011, 05:02 AM   #12
Registered Member
 
Join Date: Jul 2011
Posts: 9
OS: Windows 7 SP1



I just noticed that, even if there is an autorun.inf file in the pendrive, it still cannot open it, couldn't the problem be that windows cant run the autorun.inf file for some reason?
__________________
HiTom is offline  
Old 07-29-2011, 05:05 AM   #13
TSF Enthusiast
 
Jay_JWLH's Avatar
 
Join Date: Apr 2008
Location: New Zealand
Posts: 994
OS: Windows 7 Professional SP1 - 64-bit

My System


Does the autorun feature of your pendrive work on another computer? Also give your anti-virus program the opportunity to scan the entire device. What anti-virus program are you using?
__________________
Jay_JWLH is offline  
Old 07-29-2011, 11:11 AM   #14
Senior Tech hardware team
 
Join Date: Oct 2010
Location: South Africa
Posts: 2,453
OS: Windows 7 Ultimate 64-bit

My System


Where I work we get to print a lot from USB Memory sticks and my Antivirus is set to automatically block the Autorun function of any Memory Stick or CD/DVD and my WinXP's Autorun feature is also disabled, as many viruses manifest themselves in the autorun.inf file and if it autoruns, it transfers the virus file to the PC in an instant, trust me I know it's that quick, had the experience already.
__________________
A+ Certified
Johnny1982 is offline  
Old 07-29-2011, 03:35 PM   #15
TSF Team, Emeritus
 
spunk.funk's Avatar
 
Join Date: May 2010
Location: Los Angeles
Posts: 28,819
OS: Windows 8 64, Windows 7 64 Bit SP1, XP SP3, Mac OSX

My System


Go to Start/Run and type diskmgmt.msc and press enter. In the Disk Management window is your Flash Drive still drive F: ? If not, change the attrib command accordingly. From here you should be able to right click the drive and choose Explore. If the drive is 2GB or smaller, Try formatting the drive FAT16. If larger format it FAT32.
spunk.funk is offline  
Old 07-30-2011, 03:40 PM   #16
Registered Member
 
Join Date: Jul 2011
Posts: 9
OS: Windows 7 SP1



Quote:
Originally Posted by Jay_JWLH View Post
Does the autorun feature of your pendrive work on another computer? Also give your anti-virus program the opportunity to scan the entire device. What anti-virus program are you using?
Yes it works on my laptop perfectly, except on my desktop computer. I also scanned the device with kaspersky internet security 2011 but it didnt find anything.
__________________
HiTom is offline  
Old 07-30-2011, 03:42 PM   #17
Registered Member
 
Join Date: Jul 2011
Posts: 9
OS: Windows 7 SP1



Quote:
Originally Posted by Johnny1982 View Post
Where I work we get to print a lot from USB Memory sticks and my Antivirus is set to automatically block the Autorun function of any Memory Stick or CD/DVD and my WinXP's Autorun feature is also disabled, as many viruses manifest themselves in the autorun.inf file and if it autoruns, it transfers the virus file to the PC in an instant, trust me I know it's that quick, had the experience already.
I leave my AV software off the most of the time, i turn it on when i just scan the PC or a device if i suspect of a virus is on my pc. So its very unlikely it would be my AV doing anything.
__________________
HiTom is offline  
Old 07-30-2011, 07:05 PM   #18
Moderator
- Microsoft Support
 
jenae's Avatar
 
Join Date: Jun 2008
Location: Sydney
Posts: 6,086
OS: XP, Vista, Seven, & a whole host you would never have heard of.



Hi, just read this thread, Seven treats a USB device differently to any earlier OS version, rather then me wear my fingers out:-

Quote:
How to launch a program in Windows 7

In Windows 7 it is not possible to use the ACTION command and the OPEN command together with USB flash drives anymore. Microsoft has removed this support for security reasons. These commands are still available for CDs and DVDs in Windows 7, but not for USB sticks.

Specifying your own label and icon for the USB flash drive via the Autorun.inf file is still possible, but it is not possible to allow a user to execute a program on the drive via the AutoPlay dialog box. And automatically executing a program on a USB flash drive by turning off AutoPlay and only using AutoRun is not possible either. The OPEN command is not supported at all for USB flash drives in Windows 7.

To execute a program the user must open Windows Explorer and manually run the program. Luckily an option to start Windows Explorer is always shown in the AutoPlay dialog so it is easy to start Windows Explorer. But to make it also easy for the user to find your program on the USB flash drive (the program you want the user to start when plugging in the USB stick) you should always place the program on the root folder of the drive and give it a descriptive name such as "StartMe.exe", "Autorun.exe", "Menu.exe" etc. This program file should also be the only executable file in the root folder, otherwise some users might start the wrong program by mistake.

More information about the changed behavior for AutoRun and AutoPlay in Windows 7 can be read in the following article on our Internet site: Using AutoRun / AutoPlay with a USB Flash Drive in Windows 7.
Using AutoRun / AutoPlay with a USB Flash Drive in Windows 7 (SamLogic CD-Menu Creator - Article)
__________________

jenae is offline  
Old 07-31-2011, 06:14 AM   #19
Senior Tech hardware team
 
Join Date: Oct 2010
Location: South Africa
Posts: 2,453
OS: Windows 7 Ultimate 64-bit

My System


Quote:
Originally Posted by HiTom View Post
I leave my AV software off the most of the time, i turn it on when i just scan the PC or a device if i suspect of a virus is on my pc. So its very unlikely it would be my AV doing anything.
This is not a wise move. USB sticks are notorious for virus transfers. My dad had a virus on his pc and just by plugging in my stick in his system the virus transferred to my stick, with an autorun.inf function. Luckily my Antivirus was up to date and blocked the autorun process and removed the virus. Again if your Antivirus has a Guard or Continuous Monitoring function, enable it. The Antivirus software will only remove the Autorun.inf file if it's related to a virus in that Antivirus's Database, if it's not a virus it should/will, depending on virus program, just block the Autorun.inf from executing, just to protect your system in case it has not got record of a possible virus on the USB stick. Everytime I plug a USB drive in my Work's PC and there is a Autorun.inf file on, it gives me a Popup saying that "Autorun.inf was blocked for your safety".

If you have Windows 7 Ultimate or Pro this might help. This does not work if you're running Home or Basic versions of Win 7, as they do not have the Group Policy Editor:

Disable Auto Play in Windows 7

Click the Start and Input "gpedit.msc" in search box, then click the result to open the gpedit.
Expand Administrative Templates >Windows Components > Autoplay Policies in order.Then double click "Turn off Autoplay"
Click Enabled, and then select All drives so that you can disable Autorun on all drives.Click Ok at last.
After restarting your computer, you have done all the needed work to disable Auto Play in Windows 7.

__________________
A+ Certified
Johnny1982 is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with deleting Trojans
I am trying to remove these Trojans from my computer: TrojanClicker:Win32/Hatigh.C TrojanDownloader:Win32/Renos.KF There are both severe, as told by my MSE (Microsoft Security Essentials), and everytime I click on "Clean Computer", it goes back to "Protecting your computer", then the next...
Help Help Inactive Malware Help Topics 5 08-04-2011 09:21 PM
Redirect virus as well
First of all just let me say I do apologize for posting this again (it's probably the third time I have) I know that you don't like or want, as you say, to repeatedly remove (help us remove, in this case) malware. I've been following the things you suggest in first steps, don't use P2P services,...
PC person Resolved HJT Threads 53 07-31-2011 09:17 PM
Infections / Malware / rundll32.exe error
My computer was last used by someone to download games and watch videos on the internet. The next thing I know, there were pop-ups. I am constantly getting these fake spyware removal pop ups. I tried going into control panel/add-remove programs and I get a 'rundll32.exe' error message. I used...
6one9 Resolved HJT Threads 54 05-16-2011 07:06 AM
google site gets redirected
IT usually takes forever to load any page. When i do a search on google it redirects me to another search engine. Sometimes loading pages is instant, and sometimes takes ten minutes. Here is my sytem info: running windows vista home premium edition HP Model:a6457c AMD Phenom(tm) 8400...
litomagik Resolved HJT Threads 14 04-15-2011 09:24 AM
"Antivirus Scan"
Hello. I have a Dell Inspiron E1505 with Windows XP. I recently got two viruses, the Anti malware doctor and antivirus scan. I was able to get rid of the anti malware doctor, but not the antivirus scan. When I turn on my computer, a fake program comes up saying that my computer is infected and...
willc38 Resolved HJT Threads 26 01-11-2011 12:11 PM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2


All times are GMT -7. The time now is 05:30 PM.


Copyright 2001 - 2014, Tech Support Forum

Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts