Saturday, July 6, 2013

cmd_DOS_DynamicFileContentsGrab

cmd_DOS_DynamicFileContentsGrab



TOC
1. Output
2. cmd file reading text file
3. text file content


Output:


C:\Test>test c:\ dump
Fileaaatxtcontents is [Flights of fancy]
done



cmd file reading text file:


[test.cmd]
@echo off
rem test "c:\" dump
rem Will now read in the contents of aaa.txt
set/p Fileaaatxtcontents=<%1\%2\aaa.txt
echo Fileaaatxtcontents is [%Fileaaatxtcontents%]


echo done


text file content:

Flights of fancy


No comments:

Post a Comment