Command line to play VLC file

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
hnguyen
New Cone
New Cone
Posts: 1
Joined: 19 Apr 2010 01:20

Command line to play VLC file

Postby hnguyen » 19 Apr 2010 01:43

I wrote an Autoit sript to play a file and got the following error

File reading failed:
VLC could not open the file "$FileName".
Your input can't be opened:
VLC is unable to open the MRL '$FileName'. Check the log for details.

Below is the code

Code: Select all

$FileName = "pdv_nn_netcast_m4v-04-17-2010-170502.m4v" Run("C:\Program Files\VideoLAN\VLC\vlc.exe $FileName", "E:\My Videos\NBC Nightly News\")
However this code works fine

Code: Select all

Run("C:\Program Files\VideoLAN\VLC\vlc.exe pdv_nn_netcast_m4v-04-17-2010-170502.m4v", "E:\My Videos\NBC Nightly News\")
What is the correct syntax for passing a variable file name?

Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 42 guests