Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


November 2001

Easy pcAnywhere Connection Management

RSS
Subscribe to Windows IT Pro | See More Remote Computing Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

My organization uses Symantec's pcAnywhere as a support tool. As our dedication to remote support and administration technologies has grown, we have encountered some connection-management problems with pcAnywhere. We have several technicians who use pcAnywhere to access a large number of clients, typically over TCP/IP. (This technique doesn't work with pcAnywhere modem connections.) Over time, multiple pcAnywhere users build up numerous redundant or inaccurate .chf files. (.chf files are the files pcAnywhere creates for new remote control items.) We have found two tricks for simplifying and speeding up connecting to hosts.

First, we centralize and share connection files. When you create a .chf file, pcAnywhere stores the file in a central directory, such as C:\Program Files\Symantec\pcAnywhere\data for default installations. We simply copy group-usable .chf files to a shared directory. Because pcAnywhere automatically associates the .chf connection with the pcAnywhere client, users can just navigate to the desired connection and double-click it to launch.

Second, we use batch files for on-the-fly pcAnywhere connections. When you use the pcAnywhere GUI, you always need a new .chf file to take over a new host. However, you can use command-line options to bypass this process. Create a new remote control item and call it template. Specify that the item will use TCP/IP, and enter a legal IP address (e.g., 127.0.0.1). Next, create a one-line batch file such as the following.

Start "C:\Program Files\SymantecpcAnywhere\AWREM32.EXE" "C:\Program
Files\SymantecpcAnywhere\data\template.CHF" /C%1

Using the Start command in the batch file frees up your command window. The next part of the batch file is the pcAnywhere remote control executable's location. If the path contains spaces, you must put quotation marks around the path. Next is the full path to the template you created. Again, use quotation marks if the path contains spaces. Finally, /C%1 tells pcAnywhere to substitute the IP address you supplied as an argument for the batch file for the IP address in the template file.

Put the batch file you created into your path. When you need to connect to a random pcAnywhere host, instead of going through the connection-creation process, you can simply go to a command prompt and enter

pca <ip address>

End of Article



Reader Comments
CODE CORRECTION, PCANYWHERE 10.5 NOTES

I discovered a mistake on my part in the submitted code. The line with the start command needs to include an extra pair of quote marks at the beginning to deal with a quirk in START.<br><br>

On NT/2000/XP, the command processor interprets the contents of the first "" it sees as the window title. TO fix it, make that line the following (all 1 line):<br><br>

Start ""
"C:\Program Files\Symantec\pcAnywhere\AWREM32.EXE"
"C:\Program Files\Symantec\pcAnywhere\data\template.CHF"
/C%1
<br><br>
Sorry for the error - my fault, it appears I lost the "" while submitting the note.
<br><br>
Also, please note that pcAnywhere 10.5 has some default enhanced security restrictions (at least in beta) which prohibit launching the template from anywhere outside of the pcAnywhere directory structure.
<br><br>
I am including here an updated version which should work fine after you "localize" the variables to your system. I inserted line numbers to prevent problems with wrapping of this text as it is displayed.
<br><br>
1. Set App_Working_Dir="C:\Program Files\Symantec\pcAnywhere"
2. Set App_PE_Name=AWREM32.EXE
3. :: pcAnywhere 10.5 beta refuses to run if this is NOT in the CMS subdir
4. Set App_Doc_Name="C:\Program Files\Symantec\pcAnywhere\CMS\Template.CHF"
5. :: END LOCALIZATION
6.
7. :: Let user see what exe name is and what the working directory will be
8. @echo Target system ia %1; template used is %App_Doc_Name%
9. :: pcAnywhere 10.5 beta refuses to run if you don't CD to this folder
10. pushd %App_Working_Dir%
11. start %App_PE_Name% %App_Doc_Name% /C%1
12. popd
13.
14. :: done with variables - destroy them
15. Set App_Working_Dir=
16. Set App_PE_Name=
17. Set App_Doc_Name=


Alex Angelopoulos November 11, 2001


I made an Active Desktop wallpaper with my users' names, linking to their pcAnywhere connection. Simply make an HTML page and use this type of links:
C:\Documents and Settings\All Users\Application Data\Symantec\pcAnywhere\clientname.CHF
I'm just one click away from my users :)

Martin Huijgen June 26, 2002


jjjjj

Anonymous User May 04, 2005 (Article Rating: )


Used the corrected code with PCAnywhere 11.5 and it worked fine !

Anonymous User August 04, 2005 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement