Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: I want to write a batch file to play a particular video file  (Read 24369 times)

0 Members and 1 Guest are viewing this topic.

devduttaa

    Topic Starter


    Rookie

    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

    Dias de verano

    • Guest
    Re: I want to write a batch file to play a particular video file
    « Reply #1 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"



    devduttaa

      Topic Starter


      Rookie

      Re: I want to write a batch file to play a particular video file
      « Reply #2 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

      Dias de verano

      • Guest
      Re: I want to write a batch file to play a particular video file
      « Reply #3 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"

      kingbhai



        Newbie

        • Experience: Beginner
        • OS: Windows 7
        Re: I want to write a batch file to play a particular video file
        « Reply #4 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??

        foxidrive



          Specialist
        • Thanked: 268
        • Experience: Experienced
        • OS: Windows 8
        Re: I want to write a batch file to play a particular video file
        « Reply #5 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.