PDA

View Full Version : LUA question win.FileExists



marketability
May 31st, 2009, 07:18 AM
I am trying to display whether my media server is running an an NR variable

can anyone tell me why the following LUA (called OnPanelLoad or by a button) is not working?

if win.FileExists("t:\\21\\VIDEO_TS\\video_ts.ifo") then
NetRemote.SetVariable("PME.BIGPIG", "Media Server is UP");
else
NetRemote.SetVariable("PME.BIGPIG", "Media Server is DOWN");
end;

by the way... I may be blonde

Rob H
May 31st, 2009, 08:54 AM
Um.. there is only one function in the win table in NetRemote, ie win.GetTickCount()

marketability
May 31st, 2009, 08:57 AM
duh...

my bad - I'll have to run it from Girder I guess and call it from NR

Thanks