Jump to content
xisto Community
Sign in to follow this  
electriic ink

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

Recommended Posts

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:

 

start movie.mswmmstart instructions.txtexit

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:

 

[autoplay]File = core_files/Begin.batIcon = 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?

Share this post


Link to post
Share on other sites

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 :) And don't forget that in order to utilize autoplay, your school's computer has to be autoplay enabled.

Share this post


Link to post
Share on other sites

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.

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 :)
Edited by cmatcmextra (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.