Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if file exists only in a particular place
Message
From
04/10/2007 18:08:44
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
04/10/2007 18:06:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01258744
Message ID:
01258771
Views:
15
>>>>>I want to check if an EXE exists, but I only want to look in the same directory of the EXE that is currently running (the one doing the checking). Thanks!
>>>>
>>>>if file(forcepath("other.exe",justpath(application.servername)))
>>>>
>>>>Cetin
>>>
>>>What is Application.ServerName? First part is MyCurrentlyRunningApp? What is the ServerName part?
>>
>>It worked well with just using this, so I'm guessing that the ServerName thing isn't anything that matters:
>>
>>
>>IF FILE(FORCEPATH('EMPS.exe', JUSTPATH('EMPS_Admin.exe')))
>>
>>
>>Thanks!
>
>Oh you hardcoded:) Switch back to application.servername so it wouldn't fail if someone changes the exe name:)
>Cetin

Ahhhhh! Now I get it. Application.ServerName is actually a system variable. Doh! Even better. Thanks!
Previous
Reply
Map
View

Click here to load this message in the networking platform