1.

Solve : Activating a notepad document?

Answer»

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.

???What do want to do with the document? Print it, display its contents on screen?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 ?

DDon'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



Discussion

No Comment Found