Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open file using relative path

Status
Not open for further replies.

instructorTek

Instructor
Jun 5, 2006
61
Hi all. I would like my director movie to open a text file that is in a subfolder higher up the directory tree rather than lower down. Is there a way to do this using a relative path? I don't want to specify the absolute path to the linked files. e.g the movie may be in D:\files\OpenText.dir and I want to open a file at D:\TextFiles\note.txt. Any help will be appreciated.
 
_player.open({stringDocPath,} stringAppPath)

When either stringDocPath or stringAppPath are in a different folder than the current movie, you must specify the full pathname to the file or files.

So you need to specify the full path. (absolute path) But you don't need to hard code the path, as you can let Lingo to work out the path to the file using "_movie.path".


Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top