Sign in to follow this  
Followers 0
computergroove

Retrieving all the wmv files from a directory in my script

2 posts in this topic

Is there a way for autoit to read the contents of a directory and save it? I want to have my script read only a certain type of data, e.g. all the .wmv files, and start playing the files in random order in mplayer2 until someone enters something on the keyboard.


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Check the help file for _Filelisttoarray()

Something like:

$List = _FileListToArray ( "C:\Videos\" ,"*.wmv", 1 )
Edited by Dampe

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  
Followers 0