Hi L.
Am 09.05.2006 um 15:59 Uhr schrieb [EMAIL PROTECTED]:
In order to do this, I use filemon to note which DLLs are used by the
programs, copy these off the original test system onto a CD (in this
case
into d:\IR\2k\system32). Then I need to set the environment variables.
Using
the model of Helix 1.7 cmdenv.bat, ir.bat and ir2.bat I changed the
path
variables in cmdenv.bat to point to the CD or to a USB stick, on d: or
e:
PROBLEM
It does not matter whether I run this from CD or from the writable USB
stick, as user or as Administrator (runas /user:Administrator
e:\cmdenv.bat), the environment variables appear to be set OK (tested
with
"set".) But when I run the ir batch script on a second test system,
filemon
shows that the program DLLs are still taken from the system32
directory.
There is no searching for DLLs in the CDROM / USB stick, the
environment
variables appear to have been ignored. It does not look like a
permissions
problem.
Did you copy the DLLs in the same folder as your EXE files? In my
experience EXE files will first search for libraries inside the folder
they themselves reside in, and if that fails they will default to the
c:\Windows\System32 etc. folders.
Cheers,
Bastian