Computer Hope

Microsoft => Microsoft DOS => Topic started by: devduttaa on March 29, 2009, 11:29:42 AM

Title: I want to write a batch file to play a particular video file
Post by: devduttaa on March 29, 2009, 11:29:42 AM
I want to write a batch file to play a video file . Suppose I have a video clip in some location in my PC. I want to write a batch file so that when I click on the batch file icon, the required player will open and start automatically
that particular video file. For example my video file is ABC.flv. I want to write
a batch file so that when I click on the batch file icon , flv player will start
playing the ABC.flv.

                              THANKS FROM
                               devdutta
Title: Re: I want to write a batch file to play a particular video file
Post by: Dias de verano on March 29, 2009, 11:52:42 AM
If you have the file type associated with a player just put the file path and name (in quotes if there are any spaces)

Code: [Select]
"C:\My Videos\abc.flv"


Title: Re: I want to write a batch file to play a particular video file
Post by: devduttaa on March 29, 2009, 12:12:48 PM
Please see the video file is not associated with the player.
What I mean is that the player ,for example flv player, supports that format.
Please give the general format of the BATCH FILE.
                                                                 THANKS
                                                               devdutta
Title: Re: I want to write a batch file to play a particular video file
Post by: Dias de verano on March 29, 2009, 12:16:43 PM
Please see the video file is not associated with the player.
What I mean is that the player ,for example flv player, supports that format.
Please give the general format of the BATCH FILE.
                                                                 THANKS
                                                               devdutta

Then associate it!

In Windows explorer, right click the file, choose "open with..." choose "choose program", choose "browse", find the program exe file, click OK, then check "Always use the selected program".

However, if you can't, or don't want to,   

start "" "Program" "video file"

Code: [Select]
start "" "C:\Program Files\FLV Player\flvplayer.exe" "C:\My Videos\abc.flv"
Title: Re: I want to write a batch file to play a particular video file
Post by: kingbhai on February 23, 2016, 12:40:36 PM
Then associate it!

In Windows explorer, right click the file, choose "open with..." choose "choose program", choose "browse", find the program exe file, click OK, then check "Always use the selected program".

However, if you can't, or don't want to,   

start "" "Program" "video file"

Code: [Select]
start "" "C:\Program Files\FLV Player\flvplayer.exe" "C:\My Videos\abc.flv"

and what if i want to play this video at a specific time??
Title: Re: I want to write a batch file to play a particular video file
Post by: foxidrive on February 23, 2016, 05:51:49 PM
This thread is 7 years old - make a new one and describe what you need to do.