home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 40,961 of 42,547   
   oldyork90@yahoo.com to All   
   Re: input a sentance/comment   
   18 May 14 15:24:45   
   
   It could be argued that this is even more monkey business than asking the user   
   to use quotes, but most are familiar with notepad.  So this is how I've   
   decided to collect a comment:   
      
   :emptyAnswer   
     echo:  > snapComment.txt   
     echo Enter comments on the LINE ABOVE. >> snapComment.txt   
     echo The entire comment must appear on that line only. >> snapComment.txt   
     echo All other lines will be ignored. >> snapComment.txt   
     echo Close notepad and SAVE when complete. >> snapComment.txt   
     echo Fastest way?  Alt F4, YES >> snapComment.txt   
     notepad snapComment.txt   
      
     set /p ans=< snapComment.txt   
     echo %ans%   
      
   The cursor is sitting on the first line, thus the echo: to generate an empty   
   line.   
      
   The best I could do.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca