Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ed Rauh's APIRUN
Message
From
06/09/2003 17:47:09
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00826794
Message ID:
00826811
Views:
21
Hi Rick,
Thanks alot.

Do have any experience with pcAnywhere? I would like to make ths filetransfer as invisible to the user as possible?
Any pointers. The manual on OLE Automation is no help to me.

Peter


>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
Peter Cortiel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform