home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PILOT / PC / HP-LX2 / TOPILOT.BAT < prev   
Encoding:
DOS Batch File  |  1996-06-27  |  1.3 KB  |  40 lines

  1. @echo off
  2. if "%1N"=="N" goto :noparam
  3. cls
  4. echo Using GDBIO to extract info from %1.
  5. gdbio %1 /N > 1.t
  6. echo Preparing info for transfer (Stage 1).
  7. awk -f insit.awk < 1.t > 2.t
  8. echo Preparing info for transfer (Stage 2).
  9. awk -f topilot.awk < 2.t > 3.t
  10. echo Preparing topilot.csv for importing.
  11. copy 3.t topilot.csv
  12. echo.
  13. echo Cleaning up temporary files.
  14. del 1.t
  15. del 2.t
  16. del 3.t
  17. echo Temporary files have been cleaned up.
  18. echo.
  19. echo File: TOPILOT.CSV is now ready for import into Pilot Desktop.
  20. echo You may wish to inspect this file before doing the import.
  21. goto :end
  22. :noparam
  23. cls
  24. echo You must supply the name of the HP200LX database to prepare.
  25. echo For example:
  26. echo.
  27. echo                   topilot phone.pdb
  28. echo.
  29. echo This will prepare the information in phone.pdb for importing into the
  30. echo Pilot using the Pilot Desktop Import function.
  31. echo It will create a file called topilot.csv that contains all of your
  32. echo 200LX phone information in quote enclosed, comma delimited style
  33. echo and also allows the Notes field to be transferred as well.
  34. echo.
  35. echo This is basically a dirty hack for now - GDBIO could probably be 
  36. echo modified so that my awk scripts are not necessary, but for now this
  37. echo will do to get your HP200LX data transferred to the Pilot.
  38. echo.
  39. :end
  40.