Echo Off
Rem -- This bat file is execute once for each uploaded file. It can be used for
Rem -- Zip testing, removing ansi comments, compression conversion, or anything
Rem -- else you would like to do on every file that gets uploaded.
Rem -- The following environment variables are made available for your use:

Rem -- %BiAbt%-Abort Directory (for renaming a bad zip into)
Rem -- %BiCom%-Com Port (1,2,3,...)
Rem -- %BiLog%-Log File Path (PCBoards log file)
Rem -- %BiDrv%-File's Drive (ie C:)
Rem -- %BiDir%-File's Directory (ie \PCB\Upload\)
Rem -- %BiNam%-File's Name (ie FILE.NAM)
Rem -- %BiRot%-File's Root Name (ie FILE of FILE.NAM)
Rem -- %BiExt%-File's Extension (ie NAM of FILE.NAM)
Rem -- %BiPth%-File's Path (ie C:\PCB\Upload\FILE.NAM)
Rem -- %BiDiL%-Y or N indicating if the file is to be logged

Rem -- BiPcb2nd allows for feedback from you. You can modify the environment
Rem -- variable %BiExt% to indicate that the file extension has been changed
Rem -- from Arc to Zip for instance. You can modify the environment variable
Rem -- %BiDiL% to indicate not to add the file to the directory list (N).
Rem -- The default is to add it (Y). These are the only 2 variables BiPCB2nd
Rem -- will look at on return from BiTest.
Rem --
Rem -- Set BiExt=Zip
Rem --
Rem -- The above command would tell BiPCB2nd that you have changed the file's
Rem -- extension to Zip.
Rem --
Rem -- Set BiDiL=N
Rem --
Rem -- The above command would tell BiPCB2nd NOT to add the file to the
Rem -- directory list.

Rem -- The following is one example of how to display information to the user

BiEcho 'Processing %BiNam%'

Rem -- Alternatively you can cause a file to be displayed. Environment variable
Rem -- substitution takes place in the file to be sent. The format is:
Rem --
Rem -- BiEcho /f file_path
