Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to tell if its a VFP EXE?
Message
From
15/01/1999 10:19:28
 
 
To
15/01/1999 09:07:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00175871
Message ID:
00176483
Views:
25
I found a little problem with using "Set Procedure To". You can set procedure to any text file. Hmmm, I'd like to try and make this "idiot proof" but, as they say ... "make it idiot proof and they'll build a better idiot".


>WOW! Thanks for such a simple solution. I was using fread to look for a signature in the exe's per David and Georges suggestions. I also started to look for a signature in an "APP" but have yet to find something. In any event, your suggestion is great too. Thanks again.
>
>-Isaac
>
>
>>Hi Issac,
>>
>>>I have an app allows the user to schedule an app to run. I allow the user to select the file to run with GetFile(). Does anyone know of a way to make sure the file selected (I only allow selection of "app" or "exe") is a VFP app?
>>
>>Try
>>
>> SET PROCEDURE TO bla.EXE ADDITIVE
>>
>>If it returns an error, it's not a VFP exe. It will also tell you whether it's a VFP exe, but compiled in the wrong version.
>>
>>
>>Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform