DOS命令追加符的使用

时间:2023-03-09 07:00:14
DOS命令追加符的使用

@echo off

start \\192.168.10.120\常用软件\系统工具\远程客户端\winvnc.exe

#打开共享的远程客户端程序

ipconfig /all > d:\displayIP.txt   

#ipconfig /all 命令输出到D盘的displayIP.txt文本,追加符号>>表示不覆盖原来内容后面添加新内容,追加符号>表示新内容把原来内容覆盖

copy d:\displayIP.txt \\192.168.10.120\ipaddress  

#复制D盘displayIP.txt文本到共享192.168.10.120文件夹ipaddress内

del d:\displayIP.txt    

#删除D盘displayIP.txt文本