S.U.P.E.R. Archivo HP 200LX
← Volver al catálogo

BAT to EXE

Versión 1.73 · Pieter Hientjens

Descargar 74.9 KB

Descripción

The HP Palmtop Paper Once you've created a batch file you can compile it with BATLITE and turn it into a .COM file. There are several such programs like this on the market: this is The Best--hands down. The COM file will work slightly faster than the original batch file. Freeware from Belgium. Hard to find elsewhere.

Ficha técnica

Fichero
batl173.zip
Tamaño
74.9 KB
Formato
.zip
Año
1995
Alta en S.U.P.E.R.
1998-12-20
Ficheros dentro
4
Autor
Pieter Hientjens
Ruta
anonftp/pub/batl173.zip

Cómo instalarlo

Qué enviar al palmtop ahorras 20.8 KB

Estos son los ficheros que necesitas. Puedes enviarlos desde el contenido del paquete.

  • BATLITE.EXE → A:\SOFT programa de DOS 16.6 KB
  • PEEKCMD.EXE → A:\SOFT programa de DOS 11.2 KB
  • DIFF.EXE → A:\SOFT programa de DOS 42.2 KB

No hace falta llevar al palmtop BATLITE.DOC: son manuales, código fuente o material de apoyo. Léelos aquí y ahórrate 20.8 KB en un disco de 1 MB.

Pasos
  1. Copia BATLITE.EXE, PEEKCMD.EXE, DIFF.EXE a A:\SOFT. Son programas de DOS: se ejecutan desde el icono DOS, o añadiendo A:\SOFT al PATH de C:\AUTOEXEC.BAT para poder llamarlos por su nombre.

Deducido del contenido del paquete y de las convenciones del 200LX. Se instala en A: a propósito: C: es un disco RAM y cada byte ahí resta memoria al sistema.

Necesita también 1

El manual cita estos ficheros, que están en el archivo:

Instrucciones del autor
installation-type batch  files, which cannot run as actual .BAT
          files anyway  (a batch  file cannot  survive if  you remove the
          diskette it  was sitting  on).   If you want to keep your batch
          files 100% DOS compatible, don't rely on these improvements:

            1. The IF  EXIST command  will work  for subdirectories as
               well as for normal files.  For example:

               if not exist c:\abcdemo mkdir c:\abcdemo

               The classic  IF EXIST  command works  with directories,
               but only if you use the following trick:

               if not exist c:\abcdemo\nul ...  (or prn, aux, etc).

            2. BatLite emulates DOS's action in halting after a second
               batch file  is called from inside the first.  If you do
               not  want   this  to   happen,  run  BatLite  with  the
               `/Nobatch' switch.   Then,  if you start a second batch
               file from  the compiled  batch file, the compiled batch
               file  does  not  halt,  but  continues  with  the  next
               statement.   BatLite checks  for the  existence of  the
               second batch file when it creates the .COM file.  Thus,
               creating or  removing a .BAT file _after_ the .COM file
               has been created changes nothing.

            3. The EXIT  command has  the effect  of halting the batch
               file.   This is  a useful  substitute for  using a goto
               statement to jump to the end of a batch file.

            10.  BatLite supports  the  undocumented  '='  in  the  IF
               ERRORLEVEL command.   For  example, 'if  errorlevel==1'
               and 'if errorlevel = 2' are valid if statements.


…

Extracto literal de BATLITE.DOC, tal cual venía en el paquete.

Enviar a mi palmtop

El palmtop tiene que quedar esperando antes de pulsar el botón, o la transferencia fallará. Es él quien avisa de que está listo, no al revés.

En el palmtop

  1. Conecta el cable serie entre el palmtop y el ordenador.
  2. Abre Data Comm y ve a Menu → Connect → Settings. Ajusta: 9600 baudios, 8 bits de datos, paridad None, 1 bit de parada.
  3. Vuelve al menú y entra en Menu → File → Receive, con el protocolo Zmodem. El palmtop se queda esperando: déjalo así.

En el ordenador

  1. Usa Chrome (o Edge / Opera). Firefox y Safari no pueden abrir el puerto serie, y ningún navegador móvil tampoco.
  2. Averigua cuál es tu puerto: si no lo tienes claro, despliega la ayuda de aquí abajo.
  3. Pulsa el botón y selecciónalo en la ventana que abre Chrome.
¿Cómo sé cuál es mi puerto?

Linux — tu adaptador USB-serie será /dev/ttyUSB0 o /dev/ttyACM0. Los /dev/ttyS0ttyS31 son puertos heredados de la placa base: el núcleo los lista aunque no exista ninguno, así que casi nunca son el tuyo. Para salir de dudas:

ls -l /dev/serial/by-id/

Sale el fabricante y el modelo, y a qué ttyUSB* apunta. Si no aparece nada, desenchufa y vuelve a enchufar el cable y mira dmesg | tail: verás una línea del estilo «ch341-uart converter now attached to ttyUSB0».

Permisos: en Debian y derivados tu usuario debe estar en el grupo dialout o el puerto no se abrirá. Compruébalo con groups, y si falta:

sudo usermod -aG dialout $USER

Hay que cerrar la sesión y volver a entrar para que surta efecto.

Windows — Administrador de dispositivos → Puertos (COM y LPT). Tu adaptador aparece como COM3, COM4… Si aparece con un triángulo amarillo, te falta el driver del chip (FTDI, Prolific o CH340 según el cable).

macOSls /dev/cu.*; tu adaptador será algo como /dev/cu.usbserial-A50285BI. Usa siempre el cu., no el tty..

El 200LX no lleva un conector serie estándar: necesitas el cable de conectividad de HP (el F1015A o un equivalente) y, salvo que tu ordenador tenga puerto serie de verdad, un adaptador USB-serie detrás.