AutoRunning CDs

Old forum that is now archived. Please use one of the other forums.
Guest

AutoRunning CDs

Postby Guest » 24 Aug 2004 19:57

I am trying to make an autorunning CD that uses VLC. My problem is that not all CD drives will be d:. So if I try to specify an absolute file path names then I will come across some problems on computers that don't use the drive letter that I specify.

An autorun.inf will play regardless of drive letter the CD has, but I wish to have a video file on the CD play when VLC starts, and I can't figure out how to specify a file for VLC to play using relative paths, or a search to find the file on the disk.

For example
currently opens vlc from the same directory that the autorun is in. .\ specifies that the file path is relative in the autorun.inf.
[autorun]
open=.\vlc\vlc.exe

but to run the video the usual method would be:
[autorun]
open=.\vlc\vlc.exe d:\mpegtest100.mpeg


where d:\mpegtest100.mpg is a parameter for running VLC that tells it to run the specified file. using .\ doesn't seem to work as part of the parameter instead of d: Can this be altered so that it too is a relative path? is the problem that I currently have.


Does anyone know a method to specify in a VLC playlist, autorun.inf, command line, or an outsite programs to query what drive it is in, and return that as a string to use or for anoher program to use?

:) Thank-you for your time.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 25 Aug 2004 00:29

try something such as .\vlc\vlc.exe movie.mpg
or .\vlc\vlc.exe ..\movie.mpg

Mark McCrea
New Cone
New Cone
Posts: 2
Joined: 19 Aug 2004 18:31

Postby Mark McCrea » 25 Aug 2004 02:26

When the movie is in the same folder as the .exe or shortcut pointing to the exe then it will play a file from a command line of the form:

.\vlc\vlc.exe movie.mpg


:D :D Very Great Thanks dionoea.

This has been a sticking point on my project for the last couple of days.


Return to “VideoLAN”

Who is online

Users browsing this forum: No registered users and 11 guests