Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Discovering the PATH...
Message
From
04/09/1997 06:53:07
 
 
To
04/09/1997 06:40:27
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00048396
Message ID:
00048450
Views:
40
Hi Renato!

Sorry, that I missunderstood you. So, you know the name of an exe (e.g. "another.exe"), and want to know if it is on the disk somewhere. If it is, you want the fullpath. I guess, you have to search for the file in all directory on all avalable local drive. In UT KB section you can see in API section how to catch ALL available local harddisk. Then, you sould search for the file name in all directories. You can do it with ADIR() ASCAN() functions in a reqursive manner.
I dont know about filesearch function in WIN32API. But, it is possible, that it exist, or there is a ready-to-use VFP function somewhere.

BB




>>Hi Renato!
>>
>>As I understand You want to catch the path of an exe, inside an exe?
>>It gives you:
>>left(sys(16,0),rat("\",sys(16,0),1))
>>
>>BB
>
>Hi Bela!
>
>What I really need is to discover the path of an exe from another exe...
>
>Renato
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform