how to find Windows dir?
Posted on 1997-07-22
I'm using multiple windows dirs (C:\windows, E:\Winnt, F:\Win95US) and use a program which needs to install a picture in their root. my code I use now is as follows;
Image1.Picture.Bitmap.Handle := NViewLibLoad('e:\winnt\800x600.jpg', False);
I tried using this suggested in the help file : NViewLibLoad('<systemroot>\800x600.jpg', False); but this does not work.
how does it work so the program automatically searches the root Windir of the active windows (systemroot).