15 Recycle Node

This command will mark the node number that you specify to be recycled. When recycling the node, you can execute a batch file to perform any necessary processes (e.g., updating files) in BOARD.BAT.

Subcommand

[node]Node number to recycle.This value represents the node number that will be recycled.

Description

When a node is recycled, PCBoard exits with an errorlevel of 6 and then continues executing BOARD.BAT. You can use this recycle to run a batch file that would update necessary system files or whatever is needed. Simply add a line to BOARD.BAT that checks for an errorlevel of 6. If an errorlevel of 6 is detected, run the appropriate batch file. The following might resemble your new BOARD.BAT file:

@echo off
c:
cd\pcb
set pcb=
set dszlog=pcbdsz.log
if exist remote.bat rename remote.bat remote.sys
if exist door.bat del door.bat
if exist endpcb del endpcb
pcboard
if exist remote.bat remote
if exist door.bat door
if exist endpcb goto end
if errorlevel == 6 call c:\update.bat
board
:end

In this example, C:\UPDATE.BAT would be executed if the node is marked for recycling. Because the call statement is used, DOS will return control back to BOARD.BAT which will execute the next line which consequently reloads PCBoard. The system is ready for callers again and the batch file updated any necessary files.

NOTE: A node can also be marked for recycling by pressing ALT-R while a user is online.