Autorun.inf

Discussion in 'Windows' started by Bhullarz, Apr 11, 2008.

  1. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    http://www.tutors161.com
    Hi everybody ! Here is the hottest thing for everyone. You must have seen some applications changing the icons for your drive or you have just seen that whenever you insert any cd/dvd into the drive, without doing anything, an application starts executing that can be any flash file or can be any html file. DO you know how it happens? It's just a simple small information file, which does the magic. It is named as "autorun.inf". This is the file which works to make any drive autorun. Yes , even you can make your pen drive auto run or can make autorun cds easily.

    Now lets start with the file contents of the autorun.inf

    Open a notepad and start writing the following code in the notepad:
    Code:
    [autorun]
    open=any_exe_or_batch_file
    icon=any_icon_file_for_your_drive
    Label=name_of_the_drive
    
    I have mentioned the basics of the autorun.inf and there are some advanced things you can do with the autorun.inf. Like you can create your own commands for the right click on your drive.
    Code:
    shell/custom_option/command="any_exe_or_batch_file_to_run"
    
    for example, you can reset the work of "explore" function of the right click menu on the drive.
    Suppose you want to execute a file whenever you right click the drive and select the option "explore",then the command would be as follows:
    Code:
    shell/explore/command="desired_exe_file"
    
    If you want to create any custom event then the code would be as follows:
    Code:
    shell/my_event/command="any_exe_or_batch_file"
    
    One option thing more can be done.Instead of using "open" code, we can use another keyword "shellexecute". in that case the code will be:
    Code:
    shellexecute="any_exe_or_batch_file"
    
    Note : File must be saved as "autorun.inf" and should be stored at the root of the drive.Second thing Open event will work, whenever you double click the drive to open for fixed drives whereas in the case of removable drives, when you insert the drive,Open event will work.
     
    Farrah and Scripting like this.
  2. pcmahes

    pcmahes New Member

    Joined:
    Apr 9, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    system engineer
    Location:
    Idia
    hello sir!

    in my computer WIN-XP trojoan infected! am update anti-virus and scanned! problem solved!
    but registry cannot be opened! when type "regedit" at Run dialog box! its appear "registry has been disabled by administrator" also cant open "msconfig" give me solution! am not use internet! Pls give me solution send mail me! pcmahes@gmail.com

    with true,
    maheshwaran!
    Tech-support engineer!
     
  3. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    http://www.tutors161.com
    If "regedit" is not working you can use any third party software like my favorite is "Registry System Wizard", its a freeware and will give you access to registry.Once you have opened the Registy, just follow the procedure:
    1.go to
    Code:
    Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit]
    2.then delete the values: "FindFlags", "LastKey" and "View"
    3.restart the windows.

    There are many other ways to repair the regedit. Tell me if this doesn't work. I have another option too to help you out.
     
  4. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    http://www.tutors161.com
    There is another way of enabling the direct way to enable the regedit. See if it works:
    go to :
    1. start menu
    2. click on Run
    3. Type Gpedit.msc
    4. select "User Configuration"
    5. select "Administrative Templates"
    6. select "System"
    7. Under "System", there should be an entry for "Prevent access to registry editing tools"
    just double click on it and select the option disable
    8. restart windows.

    This trick should work also.Just try and let me know.
     
  5. pcmahes

    pcmahes New Member

    Joined:
    Apr 9, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    system engineer
    Location:
    Idia
    registry has been disabled by administrator

    hello sir!
    am use ur quote! but still continue that problem!
    my system fully scanned by up to date anti-virus signatures!
    any other solution pls give me sir!

    cheers
    maheshwaran
     
  6. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    http://www.tutors161.com
    Re: registry has been disabled by administrator

    try the second option. That should work. DO not restart. Clean your pc's startup folder.Then try opening regedit.

    or you can do one thing:
    open notepad
    type the following:
    Code:
    REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" >result.txt
    save the file as test.bat
    now go to run
    type "cmd"
    run this batch file
    you will see a new file will be created named "result.txt"
    put the contents here in your reply.

    Note: while Coding the line, there comes a space inbetween word "Applets",do remove it,before using this line.
     
    Last edited: Apr 19, 2008
  7. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
  8. ron_genum

    ron_genum New Member

    Joined:
    Feb 19, 2008
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    IT Personnel
    Location:
    Philippines
    The Best and Most Easy way u can do is Bask Up your Needed files, Have Your Bootable Cd with your OS, reformat your hard disk partition where your windows or any OS is being installed, Install Fresh OS from your bootable cd and install antivirus, try to upadate it, and youll have your problem solved,, you'll have it in just 1 hr.
     
  9. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
  10. 89shadow

    89shadow New Member

    Joined:
    Jul 24, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    NIGHT AUDITOR
    Location:
    CHINCHPOKLI
    thanx for guidance....
     
  11. JobMatchNow

    JobMatchNow New Member

    Joined:
    Apr 10, 2008
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    0
    That happened to me once I ended up formating hard drive, and reinstalling operating system.
     
    pcmahes likes this.
  12. regsvr.exe

    regsvr.exe New Member

    Joined:
    Apr 5, 2009
    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    0
    Hello am Bala,
    That's very simple to enable regedit and msconfig. Goto run then type gpedit.msc.
    Group Editor Policy will be opened. Choose User Configuration-->Administrative Tools-->System. On the right side of the dialog box u find preven access to registry editing tools. U must change to disable. Now enjoy uself.
     
    pcmahes likes this.
  13. Farrah

    Farrah New Member

    Joined:
    Sep 23, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://www.angelprintsultrasound1.com/
    Thanks for the terrific info. i like it so much so i will do it soon. Thanks!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice