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

Author Topic: Activating a notepad document  (Read 16910 times)

0 Members and 1 Guest are viewing this topic.

xp user

  • Guest
Activating a notepad document
« on: August 25, 2004, 04:46:39 AM »
Is it possible to activate or open a Notepad document, which contains a line of text such as a Serial Number, from within a Batch File ?

I have a serial number stored inside a Notepad Document, and I would like to know if there is a batch file command which could open this document, without having to open Notepad firstly ?

D.

???

2k dummy

  • Guest
Re: Activating a notepad document
« Reply #1 on: August 25, 2004, 05:20:16 AM »
What do want to do with the document? Print it, display its contents on screen?

dan_the_xp_user

  • Guest
Re: Activating a notepad document
« Reply #2 on: August 25, 2004, 05:33:09 AM »
I would like to display its contents on the screen.
I have began to use the START command and I can get the document opened, but how do I trnsfer eexecution control back to the batch file, from the already opened document ?

D

2k dummy

  • Guest
Re: Activating a notepad document
« Reply #3 on: August 25, 2004, 05:48:19 AM »
Don't start Notepad. Use the type command in your batch file.
type <filename>
If the file is large, pipe it to the more command to display it one page at a time.
type <filename> | more