From: notsaying@127.0.0.1   
      
   On Tue, 29 Sep 2020 23:40:38 GMT, gazelle@shell.xmission.com (Kenny   
   McCormack) wrote:   
      
   > In article ,   
   > Kerr-Mudd,John wrote:   
   >>On Tue, 29 Sep 2020 16:16:54 GMT, gazelle@shell.xmission.com (Kenny   
   >>McCormack) wrote:   
   >>   
   >>> 1) Is there a simple way to get the number of args passed to a batch   
   >>> (.BAT   
   >>> or .CMD) file? Like $# in Unix.   
   >>>   
   >>No, not without going through the parameters. But why do you need it?   
   >>'shift' and loop to process each parameter   
   >   
   > Thank you for your answer.   
   >   
   >>> 2) Just out of curiosity, where are the command line args documented   
   >>> in the   
   >>> DOS/Windows command prompt help system? I know that things like   
   >>> %~xX are documented in "help for", but what about the really   
   basic   
   >>> stuff, like %1, %2, %*?   
   >>   
   >>%0 is the command (as typed), %1 is the 1st parameter, %* is all the   
   >>remaining (tail) commandline.   
   >   
   > Everybody knows that, of course.   
   >   
   >>This seems a good point to start.   
   >>https://ss64.com/nt/syntax-args.html   
   >   
   > Strange that you have to go out to the Internet to find documentation   
   of   
   > something so obvious. Why isn't it in the basic help system?   
   >   
      
   'cos 'help' is per command? Perhaps you want a physical DOS manual; It   
   came in a binder back in DOS 3 & previous, IIRC. Maybe some sadd^w   
   collector is willing to part with one.   
   £50+ for a crushed box?!!   
   https://www.ebay.co.uk/itm/Microsoft-MS-DOS-5-Upgrade-Operating-System-   
   Retail-Boxed-RARE-3-5-Disks-Manual/173985912918   
      
   Or look at bitsavers (HP version, but mostly generic info)   
      
   https://www.mirrorservice.org/sites/www.bitsavers.org/pdf/hp/9000   
   _hpux/softpc/98870-90050_MSDOS_3.3_Reference_Sep89.pdf   
      
   chapter 3-3 on.   
      
      
   --   
   Bah, and indeed, Humbug.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|