Batch to launch 2 files

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
alexis
Posts: 1
Joined: 04 Aug 2013 15:10

Batch to launch 2 files

#1 Post by alexis » 04 Aug 2013 15:19

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 :)

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Batch to launch 2 files

#2 Post by penpen » 04 Aug 2013 16:04

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
Last edited by penpen on 04 Aug 2013 16:50, edited 1 time in total.

aGerman
Expert
Posts: 4743
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Batch to launch 2 files

#3 Post by aGerman » 04 Aug 2013 16:23

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

Post Reply