开发者

Command Prompt to Text File with no OverWrite?

开发者 https://www.devze.com 2023-03-06 04:21 出处:网络
I need to send some information from the command prompt to a text file but I would like to have it just continue adding to the text file.

I need to send some information from the command prompt to a text file but I would like to have it just continue adding to the text file.

For example

ipconfig >C:\Users\Desktop\File.TXT

and then

tasklist >C:\Users\Dekstop\File.TXT.

When the second command runs it overwrites the file. I would l开发者_JAVA技巧ike it to just add on to the file.


Use

tasklist >> C:\Users\Desktop\File.TXT

for the second command


>> is used to append the changes to the old file:

 ipconfig > C:\Users\Desktop\File.TXT

 tasklist >> C:\Users\Dekstop\File.TXT
0

精彩评论

暂无评论...
验证码 换一张
取 消