Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for usrinp.bat

(view source code of usrinp.bat as plain text)

  1. @ECHO OFF
  2. :: Obtaining user input in Windows NT
  3. :: with the use of the FORMAT command
  4. :: posted August 20,1999
  5. :: Author: Walter Zackery
  6. :: Adapted by Rob van der Woude
  7. :: (no longer uses temporary file)
  8. :: http://www.robvanderwoude.com
  9.  
  10. SET INPUT=
  11. CLS
  12. ECHO\
  13. ECHO Enter your input string and press ENTER when done.
  14. ECHO\
  15. FOR /F "tokens=5* delims= " %%A IN ('FORMAT /F:160 A: ^| FIND "..."') DO SET INPUT=%%B
  16. SET INPUT
  17.  

page last modified: 2024-04-16; loaded in 0.0040 seconds