Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

October 17, 2001 12:00 AM

Easy pcAnywhere Connection Management

Windows IT Pro
InstantDoc ID #22361
Rating: (4)

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>

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    Aug 04, 2005

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

  • Anonymous User
    7 years ago
    May 04, 2005

    jjjjj

  • Martin Huijgen
    10 years ago
    Jun 26, 2002

    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 :)

  • Alex Angelopoulos
    11 years ago
    Nov 11, 2001

    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.



    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):



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



    Sorry for the error - my fault, it appears I lost the "" while submitting the note.



    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.



    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.



    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=

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.