Good old Windows stores things like imaging in different hard drive locations. This tip evaluates the version of the operating system so the correct path can be executed.
Windows NT =(4.0)
Windows 2000 =(5.0)
Create a hidden field called "Platform"
Formula:- @RegQueryValue
("HKEY_LOCAL_MACHINE";
"SoftwareMicrosoftWindows NTCurrentVersion";
"CurrentVersion")
Now use an @If to execute the correct path
E.G.
@If(Plat="5.0";@Command([Execute];
"C:Program FilesWindows
NTAccessoriesImageVuekodakimg.exe";Path);
C:Program FilesWindows
NTAccessoriesImageVuewangimg.exe";
Path)
This was first published in February 2003