Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running a shortcut on the desktop
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01126097
Message ID:
01126103
Views:
27
>Whoops! Lets start again!
>
>Hi! I'm writing a transfer program that makes use of a VFP link.
>
>At times the VPN link gets disconnected for varous reasons.
>
>I have a shortcut set up to connect the vpn link. Can I run this icon from a Foxpro program if the VPN link appears to be down?
>
>Many thanks in advance
o1 = CREATEOBJECT([wscript.shell])

*** If this shotcut is placed in All Users Desktop folder cghange following line to
*** lcUserDeskTop = o1.SpecialFolders(0)

lcUserDeskTop = o1.SpecialFolders(4)+[\MyFile.LNK]
Declare INTEGER GetShortPathName IN WIN32API STRING lpszLongPath, STRING @lpszShortPath, INTEGER lBuffer
LOCAL lcShortName
lcShortName = SPACE(254)
lnReturn = GetShortPathName(lcUserDeskTop,@lcShortName,254)
o1.Run(LEFT(lcShortName,lnReturn),3,.f.)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform