Link program to external file EXE looking for SYS file
Posted 20 August 2012 - 10:48 AM
In previous efforts I've accomplished this by copying support files to either the script directory, or into SysWoW64/System32. Unfortunately, this program does not use search paths to find the file. In my testing:
- ProcMon does not show the EXE looking for the .SYS file.
- Depends does not show the .SYS file in the list.
- PE Explorer shows that it looks for the .SYS in the same folder as the .EXE is located.
So I am wondering if there is a way to configure Windows temporarily using Symbolic Links or an Environment variable or something else to help this EXE find its support file?
A worst case scenario is that I'll just copy it to the HDD temporarily to run the program, but I'd rather not take this step if I don't have to.
OS using here is Windows 8 Pro x64 which hopefully won't matter.
Posted 20 August 2012 - 12:21 PM
You can use the path variable (it should support unc name or mapped network drive).
A simple batch launching your exe should work after modifying the path variable should work.
Posted 20 August 2012 - 07:03 PM
Cheers and Regards
Posted 21 August 2012 - 08:51 AM
You are right, this is the normal behaviour, but this app isn't doing that. Normally if I run into this situation, I use ProcMon to show me where it is looking for the file, but since it doesn't show up (even with Advanced Output enabled) I can't just temporarily copy it there.
I haven't been successful at creating a Path Variable yet, but I have some other things to try out.
Update: I've determined that the PATH variable won't make a difference because the .EXE is not using that to find the file. Even if I put the .sys file in the dirs already specified in PATH, it won't run.
This post has been edited by Tripredacus: 21 August 2012 - 10:04 AM
- ← How To Modify An Element in the Dictionary Class?
- Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
- Batch Edit Folder Templates? →