Question about Microsoft Windows Vista Ultimate Edition

2 Answers

To make .bat file

I want to make *.bat file for autorun cd. how could i do this.plz tell me

Posted by on

2 Answers

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    Superstar:

    An expert that got 20 achievements.

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

  • Microsoft Master
  • 19,396 Answers

The command lines contained in autorun are for windows, they cannot be executed from a *.bat file, as in a batch file you can only run dos programs.
If you want to execute a specific program on cd using a batch file you just type the program path and name in the bat file, for example : "E:\startup.exe" and save the batch file.
You can edit and save autoexec.bat using notepad.
If you simply need to start computer from a bootable cd instead, you will need to modify cmos boot setting in bios.
To access bios settings you need to press a key on startup, before windows starts.

Posted on Jun 22, 2008

  • Level 1:

    An expert who has achieved level 1.

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that has over 10 points.

    Mayor:

    An expert whose answer got voted for 2 times.

  • Contributor
  • 24 Answers

Here is a site that has all of the information that you will need including the autorun.inf and autorun.bat. It is included in the sample and should be rather strait forward. If you need any assistance, please let me know.

http://www.softwarepatch.com/tips/autorun.html

Posted on Jun 16, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Mwhen I put the disk in I can hear it start and the screen goes to a list of files on the disk (18) but just stops there. That is all that happens. What do I do then


It it's a software CD, look for run.exe or autorun.bat if run.exe exists, then open it, otherwise, find autorun.bat, and right-click, select edit. The name of the program mentioned here is the one you want to open.
I hope this helps!

May 04, 2011 | Computers & Internet

Tip

Create your own autorun CD or DVD





It is easy to create an autorun CD or DVD for Windows and all it takes are a few files (which we've supplied for free). The technique can be used to open other file types, but HTML is used for a reason: it is the most commonly supported by Windows (most PCs have a Web browser) and it is flexible. You could use it to open other files, such as a Powerpoint presentation, but it would require the end user to have Powerpoint or the Powerpoint viewer on their system.

The autorun zip file we've prepared contains everything you need to autorun a CD and open a HTML file. So download a copy - it's tiny and free - see above for the download link.

So why can't an autorun open a HTML directly? It is because a Windows autorun can only open an application (program) not a data file (eg HTML). You cannot tell an autorun to directly open a HTML file. Try it, and nothing will happen. To get around his problem, we are using a .bat file which Windows will treat as a program. This special file will then open the HTML file.


Assembling the CD
Download and copy the files to your root directory of the CD. These are: autorun.inf, autorun.bat and index.html. You can put all sorts of files on the rest of the CD. They won't affect the autorun. You can test the autorun by burning the three files to the root directory of a test CD-R. Open the CD drive and close it again. Viola, you have just created your own autorun HTML CD. You should change the contents of index.html to whatever you need. The index.html supplied is only a test page.

Changes you can make
The autorun can open any type of file and display any message you want. To make changes, open Windows Notepad (do not use Word, WordPad or other Word processors). Now open the autorun.bat file from within Notepad. The order is important, if you double-click the autorun.bat file, it will try to run. So open NotePad and select File-Open and choose the autorun.bat file. You'll see four lines of code.

The first line after @echo (remember the space) will appear as a comment in the autorun launch Window. This comment will be seen very briefly by your end-users. It can be changed to anything you want, but since it only appears for a second or less, don't make it too wordy. If you wanted to say 'The CD is loading now...', the first line of code will look like:

@echo The CD is loading now...

The second line of the code tells the .bat file to open to your index.html file. If want to open a file by another file (eg readme.txt), then it would read:

@start readme.txt

Make sure you leave the last two lines untouched (@cls and @exit) - they must always appear last. Save the changes and you are done. That that's all you need to create your own HTML autorun CD.

on Dec 22, 2009 | Computers & Internet

4 Answers

I have windows os and there is a autorun.inf something hidden file in my all drives.my avira antivirus has blocked that file.and i want to know that is the file safe or it is going to harm my pc.what...


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.


That being said, it would depend on what it is trying to run automatically. If it is trying to run iTunes automatically that is one thing, but if it is running a virus automatically it would not be safe.

You can right click on the file, and edit it with notepad/wordpad to find out what program it is trying to run.

May 02, 2011 | Computers & Internet

2 Answers

My kingston micro sd card has autorun.inf. Is it safe ?


Hello

OK, the autorun.inf is a file that you should not actually be able to see, as it should be hidden, but it is normal.

Have a look HERE.

But, in some cases this is a duplicate virus file, so, best is to scan this drive, and let your virus protector delete it if it is a virus.

Hope this can be of help.

Kind regards
Andrea

Sep 10, 2010 | Computers & Internet

1 Answer

Can i install vs2005 in vista? if yes then plz tell me the steps????????/


Yes u can.
It is just normal as it were in xp.
Put your vs 2005 cd, if autorun runs go ahead normaly else browse the setup.exe file, double click on it and follow default (u can customize also) routines.

Feb 19, 2010 | Microsoft Windows Vista Home Premium with...

1 Answer

CD html presentation-hyperlinks don't work with other pc's


To create an Autorun-enabled CD-ROM, proceed as follows:
  • Create an Autorun.inf File
    Autorun.inf is a text file that is located in the root folder of your application CD-ROM. It provides to the computer the name and the location of the startup program for your application that is installed when the CD-ROM is inserted. The Autorun.inf file can also contain optional information including the following:
  • The name of a file that contains an icon that represents your application's CD-ROM drive. This icon appears in Windows Explorer instead of the standard drive icon.
  • Additional commands for the shortcut menu that appears when the user right-clicks the CD-ROM icon. You can also specify the default command that runs when the user double-clicks the icon. Autorun.inf files are similar to .ini files.
  • The [autorun] section contains the default Autorun commands. All Autorun.inf files must have an [autorun] section.
  • icon: Specifies the path and the file name of an application-specific icon for the CD-ROM drive.
  • open: Specifies the path and the file name of the startup application.

Autorun.infThe following is an example of a simple Autorun.inf file. It specifies Filename.exe as the startup application. The second icon represents the CD-ROM drive instead of the standard drive icon.
[autorun]
open=Filename.exe
icon=Filename.ico

May 07, 2009 | Dell Dimension 4600 PC Desktop

3 Answers

Autorun.inf virus prob.


go to start button and press run option type cmd type cd\  2. type c: and press enter
3. type attrib -r -h -s autorun.inf 
4. type del autorun.inf

Apr 01, 2009 | Microsoft Windows XP Home Edition

2 Answers

Unable to delete the autorun.inf


hi azhar here form Karachi it is very easy. do, the below steps
reboot ur PC in safe mode with command prompt
when u bring a dos screen just move to ur drive mostly virus stayed in d: drive got d: drive and type
d:dir/ah and press enter
if u see there any auto run.inf file there also should be another file like .exe file or .bat or any kind of unknown , file so for delete the auto run file type attrib -s -h -r autorun.inf and press enter
then type del autorun.inf and hit enter here u go u have done.
do the samr process in all drives because mostly autorun.inf file make copy in all drives
remember autorun inf is just a file which help the virus to run autometicly

Feb 12, 2009 | Microsoft Windows XP Professional With...

1 Answer

I need to autorun my offline website iin Cd-ROM..


In February 2006, Microsoft released an update for Internet Explorer which affects embedded content using the <OBJECT> and <EMBED> tags which is the primary method for displaying Flash content in web pages. After users update their IE browser, they have to click embedded Flash content before they can interact with it.

Are you able to run JavaScript through the CD-rom? If so, the solution to your issue can be found here.

Jan 06, 2009 | Computers & Internet

2 Answers

How to edit registry


1) to edit registry go to start / select run and type regedit. from there you are able to edit registry values. BEWARE because editing registry values may make your windows stop working. you should know what you are doing and you are responsible of the cosnequenses 2) a bat file is a batch file. Batch files are files that allow MS-DOS and Microsoft Windows users to create a lists of commands and/or programs to run once the batch file has been executed. 3) create a file called autorun.inf and type inside [autorun] open=file.exe save your file and write it in the cd you want to autorun the file.exe part must be replaced with the executable you want to load when your CD autoruns

Oct 08, 2007 | Microsoft Windows XP Professional With...

Not finding what you are looking for?
Microsoft Windows Vista Ultimate Edition Logo

124 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2642 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18375 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...