Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ed Rauh's APIRUN
Message
 
 
À
06/09/2003 14:01:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00826794
Message ID:
00826801
Vues:
36
This message has been marked as the solution to the initial question of the thread.
Peter,

You'll need full drive and path info for both the program name and the chf file name. Also if you want to initiate a connection to a remote host you'll want to run awrem32.exe instead of winaw32.exe. The following code works (change it for your own directory structure):
lccommandline = ["C:\Program Files\Symantec\pcAnywhere\awrem32.exe" "C:\Windows\All Users\Application Data\Symantec\pcAnywhere\yourfile.chf"]
ox=NEWOBJECT( "api_apprun", "\vfpshare\api_apprun\process", "", lcCommandLine)
ox.LaunchApp()
ox=null
HTH,

-Rick


>Hi
>I want to start an automatic file transfer with pcanywhere.
>to launch the app I have:
>
>
>o=newOBJECT('api_apprun','modules\process')
>
>o.icCommandLine	='winaw32.exe C:\Documents and Settings\All Users\Application Data\Symantec\pcAnywhere\pcortiel.CHF'
>
>o.LaunchApp()
>
>
>the c:.... in the commant line is the the process torun within pcAnywhere but it does not work
>How could I have the same effact as clicking on the pcortiel icon in the pcanywhere desktop window withch starts the automatic file transfer
>
>Thanks
>
>Peter
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform