Home / Microsoft / Microsoft Windows / Windows XP / Activating a notepad document
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Activating a notepad document  (Read 5570 times)
xp user
Guest
« 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.

???
IP logged
2k dummy
Guest
« 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?
IP logged
dan_the_xp_user
Guest
« 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
IP logged
2k dummy
Guest
« 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
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft Windows / Windows XP / Activating a notepad document « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.092 seconds with 19 queries.