These notes apply only to RAS on NT. [d:\kermit\src]at /? The AT command schedules commands and programs to run on a computer at a specified time and date. The Schedule service must be running to use the AT command. AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\\computername] time [/INTERACTIVE] [ /EVERY:date[,...] | /NEXT:date[,...]] "command" \\computername Specifies a remote computer. Commands are scheduled on the local computer if this parameter is omitted. id Is an identification number assigned to a scheduled command. /delete Cancels a scheduled command. If id is omitted, all the scheduled commands on the computer are canceled. /yes Used with cancel all jobs command when no further confirmation is desired. time Specifies the time when command is to run. /interactive Allows the job to interact with the desktop of the user who is logged on at the time the job runs. /every:date[,...] Runs the command on each specified day(s) of the week or month. If date is omitted, the current day of the month is assumed. /next:date[,...] Runs the specified command on the next occurrence of the day (for example, next Thursday). If date is omitted, the current day of the month is assumed. "command" Is the Windows NT command, or batch program to be run. [d:\kermit\src]rasdial /? USAGE: rasdial entryname [username [password|*]] [/DOMAIN:domain] [/PHONE:phonenumber] [/CALLBACK:callbacknumber] [/PHONEBOOK:phonebookfile] [/PREFIXSUFFIX] rasdial [entryname] /DISCONNECT rasdial Command completed successfully. ----- These commands are the basis for making automated connections. Unfortunately, there is no good way to ask "do I have a valid connection?" or "am I already connected to ?". The tools we do have are: . ask K95 to SET HOST and check the for success or failure . RASDIAL - if already connected, the port will be in use and the command will fail with Error 633. However, the port could be in use for any reason and it will also fail with Error 633. [d:\kermit\src]rasdial powerpc1 Connecting to POWERPC1... Remote Access error 633 - The port is already in use or is not configured for Remote Access dial out. For more help on this error: Type 'winhlp32 rasphone.hlp' In help, choose Index page and type 'Error 633' . RASDIAL by itself. Will report to the screen the current connection status. [d:\kermit\src]rasdial Connected to PowerPC1 Command completed successfully. [d:\kermit\src\]rasdial No connections Command completed successfully. However, it does not indicate it at all by the exit status. --- So the best we can do is the following: SET HOST XIF FAILURE { RUN RASDIAL XIF SUCCESS { DEFINE RASCONNECT YES SET HOST } } ... do various things ... SET HOST XIF DEF RASCONNECT { RASDIAL /DISCONNECT UDEFINE RASCONNECT } Unfortunately, it is not possible for us to automate the dialing process or the creation of the RAS phone book entries.