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.