Author |
|
phil13 Groupie
Joined: December 19 2004 Location: France
Online Status: Offline Posts: 60
|
Posted: April 21 2005 at 11:25 | IP Logged
|
|
|
Dave,
for simplify maintening, i would like to use default path in formula.
For example, i've write :
ph_runscript_3 ("..\vbscript\serena.vbs", "vbscript", 1, 2000, "cmd_ballon2", "off", 0, "0")
rather than :
ph_runscript_3 ("H:\Program Files\powerhome\vbscript\serena.vbs", "vbscript", 1, 2000, "cmd_ballon2", "off", 0, "0")
But it seems to works sometime and don't work other time ... The reference path seems to change with time.
What do i have to write ?
Thanks
Philippe
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: April 21 2005 at 13:44 | IP Logged
|
|
|
Philippe,
Thats the problem that Peter was having. Over the course of time (or some unknown event) the current path would change.
One suggesting may be to use the ph_getphdir function. Something like:
ph_runscript_3(ph_getphdir() + "\vbscript\serena.vbs","vbscript",1,2000,"cmd_ballon2","off" ,0,"0")
The other thing perhaps would be to store the vbscript directory into a global variable and then use that:
ph_runscript_3("{VBDIR}\serena.vbs","vbscript",1,2000,"cmd_b allon2","off",0,"0")
where {VBDIR} = "H:\Program Files\powerhome\vbscript"
Since the path is subject to change, I would always code the full path rather than rely on the relative path.
Dave.
|
Back to Top |
|
|
phil13 Groupie
Joined: December 19 2004 Location: France
Online Status: Offline Posts: 60
|
Posted: April 21 2005 at 14:00 | IP Logged
|
|
|
perfect dave .. as always
thanks
|
Back to Top |
|
|
|
|