For each file in directory : launch external app

Xancholy

Well-known member
Joined
Aug 29, 2006
Messages
143
Programming Experience
Beginner
Pardon my lack of programming knowledge

Can someone please show me how to recursively run an external application for each file within a given directory.

Pseudo:

For each file in directory
System.Diagnostics.Process.Start _
("c:\myconverter\mtn -O writeable /read/only/dir/infile.avi")
next

Thanks very much
 
Something like this would do the trick:
VB.NET:
Imports System.IO

For Each File As String in Directory.GetFiles("Path Here")
System.Diagnostics.Process.Start("App To Be Launched", "-O Writeable " & File)
Next File
 
au contraire cherie JB. This code will populate a DGV image column with thumbnails of movies from a particular directory on async thread.

Thanks for the code.
 
Back
Top