Re: lingo-l Cheking if a .dll file is in windows system

2001-06-13 Thread Tab Julius


 From desktop, or from Shockwave?

At 05:15 PM 6/13/01 +0200, Presedo wrote:
I would like to know if the system´s user has a codec...

trying this, doesn´t work because is not a server

on startmovie
 if file(C\windows\SYSTEM\DivXc32.dll).exists then
 nothing
 else
 open DivX3.20.exe
 end if
end

Any ideas?

Thanks

Rafa


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: lingo-l Cheking if a .dll file is in windows system

2001-06-13 Thread Rafael Presedo

From desktop


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: lingo-l Cheking if a .dll file is in windows system

2001-06-13 Thread Tab Julius


Then you could use the FileIO Xtra (which comes with Director) to get the 
windows folder, via the getOSDirectory() call.  You could append on to get 
the system folder (generally the system folder is under the main Windows 
directory, but it doesn't have to be, or it could be something other than 
system, or the drivers could be in a subfolder), but once you know where 
you want to look, you can then use either the Lingo 
getNthFileNameInFolder() to iterate through the files looking for the one 
you want, or you could use FileIO to open it up for reading and see if you 
have an error or not (don't forget to close it!).

It's not 100% effective - you may prefer BuddyAPI or something that can 
find the system folder for you (presuming that's where the drivers are).

- Tab

At 07:07 PM 6/13/01 +0200, Rafael Presedo wrote:
 From desktop


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]