Page 1 of 1

create a file and save in a specified directory

Posted: 08 Nov 2011 01:09
by tinfanide

Code: Select all


:: locate a directory
cd c:\test\
:: create a file & save it under the directory
echo > test.txt



Is there a single line of commands that can do the same thing to the above one?

Re: create a file and save in a specified directory

Posted: 08 Nov 2011 01:24
by OJBakker
use full path to test.txt

Code: Select all

echo > c:\test\test.txt