Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ed Rauh's APIRUN
Message
From
06/09/2003 15:32:19
 
 
To
06/09/2003 14:01:36
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00826794
Message ID:
00826801
Views:
37
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform