socc3rpr0
12 years agoOccasional Contributor
Search for a file & return its path in C: drive
Hello,
I have two computers with different OS Xp, win7 and need to load the same .dll to send some commands. But both have different paths as to where the .dll is located.
Example:
Xp : C: \Workplace\ DLLS \ load.dll
Win7: C: \username\Documents and Settings\Workplace\ DLLS \ load.dll
How do you do a search/get full path knowing the file name i.e. load.dll without physically having to always change the full path depending on which OS I am working with?
Thanks in advance!
I have two computers with different OS Xp, win7 and need to load the same .dll to send some commands. But both have different paths as to where the .dll is located.
Example:
Xp : C: \Workplace\ DLLS \ load.dll
Win7: C: \username\Documents and Settings\Workplace\ DLLS \ load.dll
How do you do a search/get full path knowing the file name i.e. load.dll without physically having to always change the full path depending on which OS I am working with?
Thanks in advance!