Batch file to open a program and file

April 27, 2011 at 08:01:53
Specs: Windows 7, i5/4gb
Hi,

Would someone please tell me how to create a batch file to open window media play and play and avi file within that program?

Window Media Player is located here:

C:\Program Files (x86)\Windows Media Player

AVI file is located here:

C:\Users\Public\Documents

Thanks

Matt


See More: Batch file to open a program and file

Report •

#1
April 27, 2011 at 08:38:35
If AVI is associated by default to Windows Media Player, just

"C:\Users\Public\Documents\Your_AVI_FileName"


Report •

#2
April 27, 2011 at 09:09:12
It opens and close CMD quickly after double clicking the bat????

Report •

#3
April 27, 2011 at 09:23:03
This is the content of my batch file:

start "C:\Users\Public\Documemts\Final Movie.avi"

it opens CMD up and nothing happens


Report •

Related Solutions

#4
April 27, 2011 at 09:28:36
If you use start you must code a pair of double quotes in front of the Pathname/Filename, i.e.

start "" "C:\Users\Public\Documemts\Final Movie.avi"


Report •

Ask Question