- pcANYWHERE Host objects do not support OLE when they are "Run as a service." Disable this feature when launching Host objects embedded within other applications or run from the file manager. - The OLE service must be installed and activated under Windows NT before installing pcANYWHERE32; otherwise, you might receive an "OLE Initialization failed" message when running pcANYWHERE32. *You can use the following command line options from the DOS prompt to start Gateways, Hosts, Remotes, or Online functions: <path to pcaw32>\AWHOST32.EXE <path to pcaw32>\data\<file>.bhf <path to pcaw32>\AWREM32.EXE <path to pcaw32>\data\<file>.chf <path to pcaw32>\AWGATE32.EXE <path to pcaw32>\data\<file>.gwf <path to pcaw32>\AWONL32.EXE <path to pcaw32>\data\<file>.osf You can now use a command line option to have a pcANYWHERE host call a remote. At the command prompt, type: AWHOST32.EXE <file>.BHF /c (for Windows 95) AWHOST32.EXE <file>.BHF /d /c (for Windows NT) NOTE: This command will not work if the host is waiting on two devices * Scripts may be executed from the command line by using the following syntax: <path to pcaw32>\AWREM32.EXE <path><scriptname>.scr * Allow host to specify the remote's phone number from the command line when the host is calling the remote. Format: <path to pcaw32>\AWHOST32.EXE <path to pcaw32>\data\<file>.bhf /cN Where: N - is the phone number you wish to dial (Ex. 1234567) The phone number can be at most 30 digits. <file>.bhf - is a host file configured for modem or TAPI. Example: AWHOST32.EXE c:\program files\pcanywhere\data\modem.bhf /c1234567Tracy
>>*PcAnywhere help file is pcaole.pdf >>LOCAL oPcApp, lcSource, lcDestination, lcCommand >> >>oPcApp = CREATEOBJECT("AWREM32.APPLICATION") >> >>oPcApp.awConnect("C:\Documents and Settings\All Users.WINNT\Application Data\Symantec\pcAnywhere\myconnection.chf") >> >>*Transfer From Host >>lcSource = "C:\testfile.txt" >>lcDestination = "C:\temp\testfile.txt" >> >>llResult = oPcApp.FileXferFromHost(lcSource, lcDestination) >> >>IF llResult >> MESSAGEBOX("Transfer from host successful",0) >>ELSE >> MESSAGEBOX("Transfer from host NOT successful",0) >>ENDIF >> >>*Transfer to Host >>lcSource = "C:\temp\testfile.txt" >>lcDestination = "C:\testfile.txt" >> >>llResult = oPcApp.FileXferToHost(lcDestination, lcSource) >> >>IF llResult >> MESSAGEBOX("Transfer to host successful",0) >>ELSE >> MESSAGEBOX("Transfer to host NOT successful",0) >>ENDIF >> >>*Execute Program on remote computer >>lcCommand = "C:\winnt\notepad.exe" >>llResult = oPcApp.ExecuteHostFile(lcCommand) >> >>IF llResult >> MESSAGEBOX("Remote Program execution successful",0) >>ELSE >> MESSAGEBOX("Remote Program execution NOT successful",0) >>ENDIF >> >>>>Tracy
oPCA = createobject("AWREM32.application")>>>>>