02-12-2006, 11:05 AM
Many programs register itself in the registry, so that it runs when you type only exename in the Run dialog. In QM, use str function searchpath to find the program and populate the variable with the full path.
str s
s.searchpath("exename.exe")
if(s.len) out s
else out "not found"
If this does not work, must be specified path:
s.searchpath("c:\exename.exe")
if(!s.len)
,s.searchpath("d:\exename.exe")
str s
s.searchpath("exename.exe")
if(s.len) out s
else out "not found"
If this does not work, must be specified path:
s.searchpath("c:\exename.exe")
if(!s.len)
,s.searchpath("d:\exename.exe")