Latest News

Recent Post

Featured
Featured
Most Popular
Videos

Autorun.inf (অটোরান) সম্পর্কে কিছু কথা ও কোডিং সূত্র!!

Autorun.inf কি?
এটা সম্পর্কে নতুন করে কিছু  বলার নেই। যারা মোটামুটি পিসি ব্যাবহার করি সবাই Autorun.inf এই নামটা দেখেছি। এই Autorun.inf হল একটা ছোট্ট প্রোগ্রামের মত, যা অন্য কোন ফাইল/ডকুমেন্ট/প্রোগ্রাম/ফাইল ইত্যাদি ওপেন করে যখন কোন সিডি/পেনড্রাইভ প্রবেশ করে। সাধারনত কোন CD/Pen drive পিসিতে প্রবেশ করানো হয় তখন উইন্ডোজ এই Autorun.inf এই ফোল্ডারটি খোজ করে, তারপর ওই ফাইলটিতে যে প্রোগ্রাম/বর্ননা দেওয়া থাকে সেই অনুযায়ী পেন্ড্রাইভ/সিডি উইন্ডোজ পরিচালনা করে।


কিভাবে তৈরি করবেন Autorun.inf ?

হ্যা, আপনিও পারবেন এই আটোরান ফাইলটি তৈরি করতে। অনেকে হয়ত না জেনেই এই ফাইলটি তৈরি করেছেন। আজ বিস্তারিত জানব এই আটোরান সম্পর্কে।
প্রথমে Notepad ওপেন করুন। [স্টার্ট মেনু>রান(Run)>notepad]
এখন নিচের কমান্ডটি লিখুনঃ
[Autorun]
এখন সেভ করুন autorun.inf  নামে। হয়ে গেল আপনার তৈরি আটোরান! এখন এই ফাইলটি সিডি/পেনড্রাইভে কপি করুন।

কিছু কমান্ড ও কাজঃ

Open =

হ্যা, এই আটোরান দিয়ে আপনি যদি কোন ফাইল ওপেন করতে চান তাহলে নিচের কমান্ডটি লিখুনঃ
              open=virus.exe
এখানে virus.exe এর বদলে আপনার কোন ছবি/ডকুমেন্ট আপনার ইচ্ছামত দিতে পারনে। অবশ্যই ফাইলের এক্সটেনশন উল্লেখ করতে হবে। যেমনঃ .mp3 .jpg ইত্যাদি। আর যে ফাইলটি ওপেনটি হবে ওই ফাইলটি পেনড্রাইভে/সিডিতে থাকতে হবে। আর আপনি যদি পেনড্রাইভের ফাইল ওপেন না করে ওই পিসি এর ফাইল ওপেন করতে চান তাহলে কমান্ডটি হবেঃ
Open=C:\Windows\notepad.exe
আমার মতে C ড্রাইভের ফাইল ওপেন করা ই ভাল কারন এইটা কমন ড্রাইভ। সব পিসিতে এই ফাইল গুলা থাকে।
Auto play –
এই কমান্ডের মাধ্যমে কোন ফাইল আটোমেটিক প্লে করবে। যেমনঃ
        AutoPlay=movie.avi
এখানে movie.avi এর স্থলে আপনার ফাইলটি দিবেন।
Icon-
Icon এইটার সাথে কেউ কেউ পরিচিত। আইকন চেঞ্জ হবে। ওই পেনড্রাইভের/সিডির আইকনটি পরিবর্তন হবে। তাহলে কমান্ডটি হবেঃ
           icon=YourIcon.ico   
আপনার এইখানে ico এর বদলে exe আইকনও দিতে পারেন যেমনঃ  icon= Photoshop.exe  তাহলে ফটোশপ এর আইকনটি আপনার পেনড্রাইভে/সিডিতে দেখাবে।
Label-
Label এর মাধ্যমে কোন নিদৃস্ট কন লেখা দেখাবে। তবে মাঝে মাঝে লেবেল এর কারনে আইকন ঠিকমত দেখায় না। [XP এর বেলায় এটা হয়]
               Label=Bangladesh Cyber Army
   মাঝে মাঝে এ্যন্টিভাইরাস এই আটোরান ফাইল্টি ভাইরাস হিসেবে ধরে/ব্লক করে দেয়। কিন্ত এটি কোন ভাইরাস না। কিছু কিছু এ্যন্টিভাইরাসে দেওয়াই থাকে যে এই নামের কোন ফাইল থাকলে তা ডিলিট করবে। যেমনঃ USB Disc Security। এটি আটোরান আপনাকে আপনার ভাইরাসটি ওপেন করতে সাহায্য করে। এখন আপনি যদি কোন ভাইরাসই না দেন ওই পেনড্রাইভে তাহলে এটি কোন ভাইরাসই না।  ধরেন আপনার বন্ধুকে পেন্ড্রাইভ দিলেন কিছু গান/ছবির সাথে একটা Trojan ও দিয়ে দিলেন সে যদি ওপেন না করে তাহলে তো আর তার পিসি আপনার ট্রজানের দ্বারা আক্রান্ত হচ্ছে না।  এখন যদি আটোরান করে দেন  তাহলে আপনার বন্ধুর আর ওপেন করা লাগবে না এমনি এমনিই ওপেন হয়ে যাবে! আসুন দেখে নেই একটা ছোট্ট আটোরানঃ
[Autorun]
Open=virus.exe
Icon=Eset smart security.ico
Label=No Virus Detected!
নোটঃ [Autorun] এই লেখাটা কিন্তু প্রথমে থাকতেই হবে।
                            আসুন এই টপিসটা পূনরায় ইংরাজীতে দেখি ও কিছু অজানা কোডিং সূত্রগুলো অনুসরণ করি যা অনেকেরই কাজে আসতে পারে-

Autorun.inf, What is it?



Autorun.inf is the primary instruction file associated with the Autorun function. Autorun.inf itself is a simple text-based configuration file that tells the operating system which executable to start, which icon to use, and which additional menu commands to make available. In other words, autorun.inf tells Windows how to deal open the presentation and treat the contents of the CD.

The entire sequence is initiated when the “disk change notifcation” polling discovers a new disk in the CD or DVD ROM drive. Then, if the “Auto insert notification” feature is enabled (it is by default), Windows checks in the new disk’s root directory for the existence of an “autorun.inf” file. If found, Windows then reads and follows the specific instructions this file defines. If no autorun.inf file is found, then Windows refers to the new disk by its serial number and executes the default actions associated with the (data or audio) content on the disk.
The Autorun.inf file defines the following:

Autorun.inf Defines the following:The process or application that will automatically run when a disk is inserted
Automatically run when CD is insertedOptionally, one can define the process or application that will run for specific Operating environments.
Icon Representing CD or DVDThe icon that will represent your application’s CD or DVD when the drive is viewed with My Computer or Explorer.
Menu Commands when CD-ROM is clickedMenu commands displayed when the user right-clicks the CD-ROM icon from My Computer or Explorer.
A simple Autorun.inf example:

[autorun]

open=autorun.exe

icon=autorun.ico


A complex Autorun.inf example:
This example is used in the following section for complete definition and descriptions.

[autorun]

open=filename.exe /argument1

icon=\foldername\filename.dll,5

[autorun.mips]

open=filenam2.exe

icon=filename.ico

[autorun.alpha]

open=filenam3.exe

icon=filename.ico

[autorun.ppc]

open=filenam4.exe

icon=filename.ico

shell\install = &Install

shell\install\command = setup.exe

shell\uninstall = &UnInstall

shell\uninstall\command = Uninstall.exe

shell\readme = &Read Me

shell\readme\command = notepad readme.txt

shell\help = &Help

shell\help\command = helpfilename.hlp


This section describes the configuration of the Autorun.inf file and each of the potential items.
Example Autorun File:Description:
[autorun][autorun] is the primary, required section name.
open=filename.exe /argument1Open is the keyword to determine what action to take upon insert notification.
filename.exe is the value defining the application that will be automatically started.
/argument1 is the argument, parameter or switch passed to the application being run. Logically, any command line parameters used must be supported by the application.
icon=\foldername\filename.dll,5Icon is the keyword to determine the icon used for the disk.
filename.dll is the value defining the file containing the icon.
,5 is the argument to the icon resource defining which icon to display.
Note: By default, the system looks for the file in the root directory of the inserted disk. If you want to access a file located in a specific folder or subdirectory, specify a path relative to the root.Example: open = foldername\filename.exe This will not change the current directory.Although AutoPlay is the default menu item, you can define a different command to be the default by including the following line. shell = verb
When the user double-clicks on the icon, the command associated with this entry will be carried out.
Note: a more common method of defining the icon resouce is an explicit reference to a .ico file. Example: icon=autorun.ico
Note: The icon defined representing your application’s CD or DVD is the drive icon as viewed with My Computer or Explorer. Valid file types containing icons include .ICO .BMP .EXE .DLL If the file includes more than one icon, by default, the second icon in the files icon resource will be displayed.

Example Autorun File:Description:
[autorun.mips]Defining the autorun items for a mips machine
open=filenam2.exeThe platform specific application to run
icon=filename2.icoThe platform specific autorun icon
[autorun.alpha]Defining the autorun items for a DEC Alphamachine
open=filenam3.exeThe platform specific application to run
icon=filename3.icoThe platform specific autorun icon
[autorun.ppc]Defining the autorun items for a Power PC
open=filenam4.exeThe platform specific application to run
icon=filename4.icoThe platform specific autorun icon
shell\install = &InstallThe Keyword defining a menu item and the Hot key for that item
shell\install\command = setup.exeThe keyword defining the operation to perform when the user selects this item
shell\uninstall = &UnInstallAdditional menu item example
shell\uninstall\command = Uninstall.exeAdditional menu item example
shell\readme = &Read MeAdditional menu item example
shell\readme\command = notepad readme.txtAdditional menu item example
shell\help = &HelpAdditional menu item example
shell\help\command = helpfilename.hlpAdditional menu item example
(সূত্র- একটি ইংরাজী ওয়েব টিউটোরিয়াল নেট সূত্রে)
  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment

Item Reviewed: Autorun.inf (অটোরান) সম্পর্কে কিছু কথা ও কোডিং সূত্র!! Description: Rating: 5 Reviewed By: Anonymous
Scroll to Top