home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / h / hslkslt2.zip / HSCRIPT.DOC next >
Text File  |  1991-11-09  |  4KB  |  82 lines

  1.  
  2.  
  3.         HSLSALT is a SALT script for Telix which makes running HS/Link
  4. easy. There are a few things that must be done to configure the script
  5. to your particular system, but other than that you should be ready to
  6. go.
  7.  
  8.         First, you must have HSLINK.EXE installed on your drive. Be sure
  9. which version you have, since the protocol is still in Beta testing, and
  10. is in constant revision. This script will work with all up to beta8.
  11.  
  12.     Getting set up
  13.  
  14.     You will have to configure the script for your system The first
  15. part you will need to change will be the string variables at the top of
  16. the script. They look like this in the script as it is now:
  17.  
  18. int f;            str listloc[] = "c:\telix\list.txt";
  19. int v;            str proto[] = "c:\telix\hslink.exe";
  20. int select;        str comline_opt[] = "c:\new @c:\telix\list.txt";
  21. int q;
  22.  
  23. Ignore the int variables. You will not need to change them. Look at the
  24. str variables. The first, listloc[], is the complete path and filename
  25. of the upload list file you wish to create. This list file is allowed by
  26. HS/Link in place of a whole list of files on the command line. The
  27. script will allow you to create this file, and add file names to it.
  28. Change the part in the quotes to create this file wherever you want it.
  29.  
  30.     Next, you will have to change proto[]. This is the complete path
  31. and filename where HS/Link is located. Be sure to include the .exe too.
  32.  
  33.     The next is comline_opt[]. This is the complete command line
  34. string to pass to HS/Link. As it is listed above, the first part
  35. "c:\new" is the location where downloaded files will be put. The second
  36. part, "@c:\telix\list.txt", is the command line option to use an upload
  37. list file in the telix directory called "list.txt".
  38.  
  39.     The upload list file is a straight ASCII file with one complete
  40. path and filename on each line. This script will allow you to enter
  41. names in this file whether online or off. If the file has not been
  42. created, it will create it. Every time you run the script and add
  43. filenames to the file, they will be appended to the existing file. If
  44. you want to delete the file, the script allows you to select this option
  45. from a menu. then a new file will be created next time you run the
  46. script. In order for this to take place, you must edit one additional
  47. part of the script before compiling it.
  48.  
  49.     Look for this part:
  50.  
  51.     if (select == "3")
  52.         {
  53.                 dos("del c:\telix\list.txt",0);
  54.         }
  55.         if (select == "4")
  56.  
  57.  
  58.     Edit the part that says "dos("del c:\telix\list.txt",0);"
  59.  
  60. All you have to do is make sure it points to the location of the list
  61. file so that the script will be able to delete it when you want.
  62.  
  63.     Now all you should have to do is compile the script with the
  64. SALT compiler, CS.EXE, and install it in Telix. I run the script from
  65. the F8 key. You can assign the script to any hot key you want in Telix
  66. by hitting Alt-K and editing the key file. To assign a script to a hot
  67. key, just define the key as "@scriptname", where the scriptname is the
  68. name of your script without the extension. Be sure the script is in the
  69. defined script directory so that Telix can find it.
  70.  
  71.     That's all there is to this, and you should only have to do this
  72. once. The script runs everything from a menu, and should be self
  73. explanatory from there.
  74.  
  75.     Disclaimer:
  76.  
  77.     I make no promises about this script. It is only guaranteed to
  78. take up room on your hard drive. I will not be responsible for any
  79. damage it may cause to your data or system.
  80.  
  81.  
  82.