dir | clip // copy to clip board
type error.log | clip
echo hello > a.txt // overrite file
echo hello >> a.txt // append file
doskey /HISTORY > history.txt // copy all commands
MyCommand.exe 1>stdout.txt 2>errors.txt
Copy & Paste a command session as follows:
1.) At the end of your session, click the upper left corner to display the menu.
Then select.. Edit -> Select all
2.) Again, click the upper left corner to display the menu.
Then select.. Edit -> Copy
3.) Open your favorite text editor and use Ctrl+V or your normal
Paste operation to paste in the text.
mod con lines=32766
@echo off
cmd "mode con:cols=140 lines=2500"
@echo off
echo test!
pause
exit
You'll have to kill the program using Ctrl + C where C stands for Cancel.
No comments:
Post a Comment