0 Replies - 1077 Views - Last Post: 12 December 2009 - 11:29 PM

#1 VulcanDesign  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 6
  • View blog
  • Posts: 98
  • Joined: 06-December 09

BATCH: User-defined variable to .txt

Posted 12 December 2009 - 11:29 PM

Description: Add this snippet in the appropriate place in your .bat fileThis is the code for setting a user-defined variable and writing it to a .txt file in BATCH.
set /p somevariable=Enter something: 
echo %somevariable% > "Pathdocumentname.txt"

Is This A Good Question/Topic? 0
  • +

Page 1 of 1