|
Answer» In the Batch file that i am writing, i use the the copy con command to write the TEXT to a file, that works fine. But how would i load this into a variable, do i NEED to use set? I do want to create and keep the file from the copy con command!
Please help. Gavinhere is one i just wrote for you
copy con %1
make the above your batch file.. for this example call it mywrit.bat make sure it is in your path
let say you want to make yourself a file called dippy.txt
you would type mywrit dippy.txt
you would type your message without word wrap then to conclude you need to do a ctrl z after you skip a LINE when you have finished your note
actually you do not save any time this way.
i do not use copy con but rather
echo this is my text part >dippy.txt
if i want to write an ADDITIONAL line
echo this and other lines take a double arrow >>dippy.txt
personally i keep notepad in my tray and use it everyday with a CTRL C to copy highlighted text and then CTRL V to paste it into notepad.
hope this helps
|