home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 9046 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!wupost!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!ubc-cs!yogi
  3. From: yogi@cs.ubc.ca (Yossi Gil)
  4. Subject: Re: Another MsDos batch programming challenge
  5. Message-ID: <1992Sep4.032836.7299@cs.ubc.ca>
  6. Sender: usenet@cs.ubc.ca (Usenet News)
  7. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  8. References: <qzhn!6f.resnicks@netcom.com> <92246.142230F13@psuvm.psu.edu> <israel.715477510@unixg.ubc.ca> <1992Sep3.214401.5000@uwasa.fi>
  9. Date: Fri, 4 Sep 92 03:28:36 GMT
  10. Lines: 30
  11.  
  12. ts@uwasa.fi (Timo Salmi) writes:
  13.  
  14. >In article <israel.715477510@unixg.ubc.ca> israel@unixg.ubc.ca (Robert B. Israel) writes:
  15. >>BTW, Yossi's solution should work if you run it as "FOO.BAT" rather than as
  16. >>"FOO".  
  17.  
  18. As I have said, it is fairly easy to make it work even if invoked as
  19. FOO as opposed to FOO.BAT. It is perhaps slightly more difficult to make it
  20. work if invoked as FOO.EXE, as (I think) was possible in some early
  21. dos versions.
  22.  
  23. >Allow me a quick check question.  Have you actually tested this on
  24. >your PC.  Gotcha or vice versa? :-) :-)
  25.  
  26. Yes, I tested it. It works. It relies on the way DOS does batch file:
  27.     
  28.     1. Open file.
  29.     2. Seek in file to current statement. 
  30.     3. Interpret statement. 
  31.     4. Close file.
  32.     5. Execute statement
  33.     6. Goto 1 if not done.
  34.  
  35. This is why Batch Programming is so inefficient.
  36.  
  37. --
  38. Joseph (Yossi) Gil                 {alberta,uw-beaver,uunet}!ubc-cs!yogi
  39. Dept. of Computer Science          yogi@cs.ubc.ca (cs.ubc.ca=137.82.8.5)
  40. 6356 Agricultural Road., Univ. of B.C.,             Tel: +1-604-822-8175
  41. Vancouver, British Columbia, V6T 1Z2, Canada.       Fax: +1-604-822-5485
  42.