Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch File that Creates Files  (Read 2037 times)

0 Members and 1 Guest are viewing this topic.

Lunar

  • Guest
Batch File that Creates Files
« on: May 18, 2010, 04:54:29 PM »
Hello everyone!  I was on this website looking up a couple things and I decided I could use some help real quick.  My mom asked me if she would make me a program to keep records of hours and stuff.  But, I am making it in a batch file.  I have the coding and everything like cd and md, but I don't know how to make a batch file create a text document.  Anyone help?

Or, if there is another programming language that will create text documents please specify it in your comment.
« Last Edit: May 18, 2010, 05:04:41 PM by Lunar »

Helpmeh



    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Batch File that Creates Files
« Reply #1 on: May 18, 2010, 05:47:55 PM »
Echo First line > textfile.txt
echo second line >> textfile.txt
echo third line >> textfile.txt

Please note the extra > in the second and third lines. If there was only one, it would replace the contents of the file with whatever is being echoed.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.