|
Answer» i have created a batch file that will execute notepad but i don't know how to input text to the document. any help will be much appreciated :-?input text to the document first before you launch notepad.
how do i do that :-?I think he means make the document beforehand basically i'm trying to make the batch file open a text file and then make it look like some body is typing the words. so they appear as you read itNotepad is a Windows program. Any of the Windows Scripting languages or even AutoIt should be able to accomodate you.
In DOS the best you could hope for is create the file, then open it in notepad:
Code: [Select]@echo off echo Hi, I'm MR. Notepad > text.txt echo Bye Now >> text.txt notepad text.txt
8-)thanks for all the help
i REALLY appreciate it. you could do it like this Code: [Select]echo text here >file_name.ext Could you input the text at a specific line? Like in a premade document, could I INSERT a bit of text at like line 15?DOS can only access text files. Text files cannot be opened input/output. For your idea to work, you'd have to copy the first 14 lines to an output file, insert your record #15, then copy the rest of the input file to the output file.
Could it be done? Maybe, under the right circumstances and if you have a lot of free time
Batch code is not a programming language. 8-)
|