Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get Filepath ?
#1
Hi Gint !

What would be the fastest way to get the file path from a program that isnt running ? path is probably different on other Systems.

Im actualy using FE_Dir and foreach to enumerate files which works fine on my home pc but on the office/company pc's that having alot and mostly different data its kinda slow. I know a few programs saving the instal path in the regestry but not all do and not even all are installed or they dont requiere an istallation.

like i said the code below works fine i was just wondering if you know of a way that maybe saves me a bit time..

Thats what i do ;

Macro Macro
Code:
Copy      Help
Dir d
foreach(d "C:\xyz.exe" FE_Dir 0xC)
,str sPath=d.FileName(1)
,out sPath


Thank you
#2
Skip some big folders where you don't expect to find.
At first get 1 level. Then search in next level, but skip some folders.
#3
Yes i thought of just split them up and skip "standard" folders aswell as folders where i don't expect.

Thank you

best regards


Forum Jump:


Users browsing this thread: 1 Guest(s)