Batch file help

Text document editing

Page 1 of 1

5 Replies - 1280 Views - Last Post: 08 June 2009 - 06:10 AM Rate Topic: -----

#1 paperclipmuffin  Icon User is offline

  • Disassembling...
  • member icon

Reputation: 13
  • View blog
  • Posts: 944
  • Joined: 16-April 09

Batch file help

Post icon  Posted 07 June 2009 - 12:29 AM

Hi all,

I'm trying to create a batch file that will open a text file like so:
START NOTEPAD %file.TXT


(which I know how to do) and then add text to it automatically without the user having to do a thing.

Help anyone? :ph34r:
Is This A Good Question/Topic? 0
  • +

Replies To: Batch file help

#2 noorahmad  Icon User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Re: Batch file help

Posted 07 June 2009 - 12:58 AM

are you running you a file?

your code is correct check your file.txt i think it is not exists next to your batch file.
Was This Post Helpful? 0
  • +
  • -

#3 paperclipmuffin  Icon User is offline

  • Disassembling...
  • member icon

Reputation: 13
  • View blog
  • Posts: 944
  • Joined: 16-April 09

Re: Batch file help

Posted 07 June 2009 - 03:03 AM

Opening the file works fine, I want to somehow add text to the file using the batch.
Was This Post Helpful? 0
  • +
  • -

#4 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 614
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Batch file help

Posted 07 June 2009 - 04:21 AM

 
echo Your text here >> textfile.txt



Should work.
Was This Post Helpful? 1
  • +
  • -

#5 paperclipmuffin  Icon User is offline

  • Disassembling...
  • member icon

Reputation: 13
  • View blog
  • Posts: 944
  • Joined: 16-April 09

Re: Batch file help

Posted 07 June 2009 - 11:22 PM

Thanks! Works like a charm! :D
Was This Post Helpful? 0
  • +
  • -

#6 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 614
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Batch file help

Posted 08 June 2009 - 06:10 AM

No problem. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1