Page 1 of 1

Batch to launch 2 files

Posted: 04 Aug 2013 15:19
by alexis
Hello,
I am new and not that good with batch. I would like some help about a batch file for Windows that open 2 files :
1. it opens VLC Media Player, 2. it open a vido clip from a list of links.

Could you please help me with a code for such a batch ? Many thanks :)

Re: Batch to launch 2 files

Posted: 04 Aug 2013 16:04
by penpen
In common the vlc player is started using:

Code: Select all

%ProgramFiles%\VideoLan\VLC\vlc.exe

A video clip from a link (my.lnk) from a link list may be started using:

Code: Select all

my.lnk

You also may start a video (myVideo.mpg) within vlc with:

Code: Select all

%ProgramFiles%\VideoLan\VLC\vlc.exe "myVideo.mpg"

penpen

Edit: corrected the first example

Re: Batch to launch 2 files

Posted: 04 Aug 2013 16:23
by aGerman
I assume you'd like to open the video in VLC.
The "list of links" is where I lost you. Is it a text file with pathes to your videos? Such like

Code: Select all

C:\myvids\bla.mpg
C:\myvids\blubb.flv
.
.
.

And what means "open a video"? A certain or a random video?

Regards
aGerman