I apologize if this has been asked before.
I'd like to have an option to "Open in Notepad".
Is it possible to have all text in the prompt window open in notepad without sending every line to a temp file?
Open in Notepad
Moderator: DosItHelp
Re: Print to Notepad
Thank you for your response. Unfortunately, my question was vague.
Currently, my programs, though fairly simple, contain and produce a great deal of text.
I decided that I want an "Open in Notepad" option to them.
I'm not thinking it's possible, but, was hoping that there might be some form of shortcut that would open whatever is in the CP into Notepad without having to add ">> sometext.txt" to every "echo" line.
I'm really just trying to be lazy.
Currently, my programs, though fairly simple, contain and produce a great deal of text.
I decided that I want an "Open in Notepad" option to them.
I'm not thinking it's possible, but, was hoping that there might be some form of shortcut that would open whatever is in the CP into Notepad without having to add ">> sometext.txt" to every "echo" line.
I'm really just trying to be lazy.

Re: Print to Notepad
I'll assume CP stands for Console Pane..
There is a program to copy to clipboard directly from batch.
Otherwise outputting a file is the only solution ( apart from manually copiyng text ).
There is a program to copy to clipboard directly from batch.
Otherwise outputting a file is the only solution ( apart from manually copiyng text ).
Re: Print to Notepad
Ed Dyreen wrote:I'll assume CP stands for Console Pane..
Actually, it's Console Pain.

So yeah, that's what I was afraid of.
I'll check out that program though.
Re: Print to Notepad
Excuse me. Your question is very vague indeed! Just a point before the answer:
You may send any text you want to a disk file, that in turn you may open with Notepad, or with any other text editor, or even show it in the screen with TYPE or MORE commands in a DOS Window. This is an usual operation.
On the other hand, if you want a Batch program to send text directly to a running Notepad.exe program, then it is much more difficult. I assume that you want NOT this option, but just send all the output your program show in the screen to a temp file.
You can do that by typing this line from the command-prompt:Please note that ALL TEXT that the program normally show in the screen will be redirected to the disk file! If the program have any SET /P command requesting any input, you will NOT see the prompt, so this form of execution is usually reserved for an automatic execution of the Batch file. For example, you may prepare a text file with the standard input for the program and then execute it this way:
I hope it helps...
Antonio
You may send any text you want to a disk file, that in turn you may open with Notepad, or with any other text editor, or even show it in the screen with TYPE or MORE commands in a DOS Window. This is an usual operation.
On the other hand, if you want a Batch program to send text directly to a running Notepad.exe program, then it is much more difficult. I assume that you want NOT this option, but just send all the output your program show in the screen to a temp file.
You can do that by typing this line from the command-prompt:
Code: Select all
yourBatFile > temporaryFile.txt
Code: Select all
yourBatFle < inputToBat.txt > temporaryFile.txt
I hope it helps...
Antonio
Re: Print to Notepad
That's it!!!
That's what I was looking for!
Thank you!
That's what I was looking for!
Thank you!