Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a shortcut on the desktop
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01126097
Message ID:
01126103
Vues:
22
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform