Girder receives the above variables & puts the values into a table called DVD.
Code:
----creates DVD table------
DVD = {String = 0, Location = 0, Slot = 0, Host = 0, Daemon = 0, DaemonCMD = 0, Compiled = 0}
local Daemon = tostring ("c:/program files/d-Tools/daemon.exe")
DVD.Daemon = string.format ('%q', Daemon)
print (DVD.Daemon)
DVD.DaemonCMD = tostring (" -mount 0,")
the variables are put in the table as folows....
DVD.String = //mediacentre/video2 (h)/ISO/2 FAST 2 FURIOUS.ISO
DVD.Location = DVD.Location
DVD.Slot = video2 (h)
DVD.Host = 192.168.1.101
DVD.Daemon = "c:/program files/d-Tools/daemon.exe"
DVD.DaemonCMD = -mount 0,
when i hit nr button "Load" it also sends a girder action that makes girder compile the above into DVD.Compiled...
Code:
DVD.Compiled = string.format ('%s%s%q',DVD.Daemon,DVD.DaemonCMD,DVD.String)
print (DVD.Compiled)
the value is...
Code:
"c:/program files/d-Tools/daemon.exe" -mount 0,"//mediacentre/video2 (h)/ISO/2 FAST 2 FURIOUS.ISO"
Putting this in the command prompt causes daemon to mount the DVD image then then zoomplayer plays it due to autorun on this drive...