Featured Site
» Posted in the Flash Kit Links section
» Title: 3D Jobs
» Description: Free job forum for jobs in Films, Video Games, Multimedia and jobs in flash animation and scripting.
Batch files are useful for all kinds of different tasks. In this two part tutorial we will firstly look at how you make a batch file to 'explore a cd'. Then in the second installment we will look at how we can employ a batch file to open a text file with the default program'. After reading these tutorials you will be able to experiment with batch files and create your own. So let's begin.
To create a .bat that will explore a directory:
1. Open up Notepad and type in:
start
@ECHO OFF
explorer D:\
The 'explorer D:\' line tells the program to start windows explorer and browse
the D:\ drive, you can always specify a directory to explore also eg. D:\images\mypic
etc, for any directory you want to explore.
2. Save type as an "All Files (*.*)" with the filename of your choice
ending in .bat, I chose mydoc.bat.
3. In your flash movie you can run this program by putting the following code
into a symbol.
On (Release)
FS Command ("Exec", "mydoc.bat")
End On