write a simple bat file
Commands in Windows
Examples
http://commandwindows.com/index.html
http://www.jb51.net/article/14632.htm
String in Batch file, http://www.computerhope.com/if.htm
for command
Read a line from a file
set /p "var="<"data.txt"
echo %var%
for /f "delims=" %%a in (data.txt) do set "var=%%a"&goto :stop
:stop
https://groups.google.com/forum/?fromgroups=#!topic/alt.msdos.batch.nt/hpmCem5GnM0