Jul 6, 2008

Autoplay.inf And .bat File Question - can you check my code and information?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Others

free web hosting

Autoplay.inf And .bat File Question - can you check my code and information?

electriic ink
Okay, so here's the situation. For one of my school projects I have decided to do a simple cartoon animation. Because of the colour loss that you get when saving in .gif format, I have decided to save it as a .wmv file. However our school does not have a media player installed so I have decided to hand the project file (.mswmm) in instead and provide instructions on how to play the movie from there.

Therefore when the cd is inserted I need two files to open (movie.mswmm AND instructions.txt). I have googled about autoplay and I have found out that you can only get one program to open through the autoplay.inf file. So instead I have complied a .bat file which is as follows:

CODE
start movie.mswmm
start instructions.txt
exit


It opens the files and then closes the command prompt window, opening the movie file first and the instructions after so they are on top of the movie window.

My autoplay file is as follows:

CODE
[autoplay]
File = core_files/Begin.bat
Icon = core_files/cd_icon.ico


Instead of the usual ordinary cd icon which is displayed, it shows my chosen icon and the code starts the bat file when the cd is insterted.

So, can I have confirmation on my coding before I risk mucking up my computer and cd?

 

 

 


Reply

BuffaloHELP
That is affirmative.

Although, I wouldn't point to the sub directory. Instead, place your Begin.bat and icon on the root directory and change the autoplay accordingly.

Here's a simple solution to test out your autoplay without losing a CD. Try using CD-RW smile.gif And don't forget that in order to utilize autoplay, your school's computer has to be autoplay enabled.

Reply

electriic ink
QUOTE(BuffaloHELP)
Although, I wouldn't point to the sub directory. Instead, place your Begin.bat and icon on the root directory and change the autoplay accordingly.


Will do.

QUOTE(BuffaloHELP)
And don't forget that in order to utilize autoplay, your school's computer has to be autoplay enabled.


I think it will. Guess I'll just have to find out...

Thanks for your help smile.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. .inf to .bat - 6.17 hr back.
  2. how to make autoplay.inf - 39.39 hr back.
  3. batch autorun - 42.40 hr back.
  4. where to put my bat file - 54.98 hr back.
  5. how to apply an autorun to a .bat file - 57.56 hr back.
  6. autoplay.inf - 15.96 hr back.
  7. how to get a batch file to autorun - 72.32 hr back.
Similar Topics

Keywords : autoplay, inf, bat, file, check, code, information

  1. Search For Video Files And Display Them
    Using a batch file in windows (0)
  2. Timer Command In Dos
    batch file help (4)
    I wish to execute a command at regular intervals .....precisely every half an hour....Is there any
    Dos command which can do it I havent found any so far...and i've heard there are no timer
    commands in DOS. So how should i go about it...i want the batch file to be executed at regular
    intervals....any external process or application that will invoke it?????....
  3. Open Any Unknown File Type With Notepad
    Make Notepad as default file opener (0)
    Open Any Unknown File with Notepad
    ************************************************************************ DISCLAIMER: The
    following contains registry edits. If done improperly can cause strange behaviour, and at worst,
    could even entirely corrupt your Windows Installation, requiring you to reinstall Windows. I cannot
    be held for any damage you may cause to your system as a result of taking any action suggested in
    the following article. ************************************************************************
    Target OS: Windows XP Introduction....
  4. How To Make A Search Form And Php Code?
    Can you help please? (10)
    I am looking to put a whole Bible on my site, don't worry about copyrights, I already have all
    that. It will be put into my site book by book. My problem? I need a form that will only search
    the /Bible part of my database. I need an html form, and then a php code that can be put into just
    ONE file but that will display a search page afterward. If you could help me out here, I would
    greatly appreciate it since I will need this in order for it to work. The goal is simple, have an
    html form, that will lead to a search of my entire inneed.mxweb.co.uk/bible database....

    1. Looking for autoplay, inf, bat, file, check, code, information

Searching Video's for autoplay, inf, bat, file, check, code, information
advertisement



Autoplay.inf And .bat File Question - can you check my code and information?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE