bat文件学习笔记_1

文章目录

  • ping
  • copy

ping

通过ping www.baidu.com测试网络是否正常

@echo test network......
@ping www.baidu.com
@echo finished
@pause

copy

copy 桌面(C:\Users\Lenovo\Documents)所有的PDF文件到指定文件夹(C:\Users\Lenovo\Documents\1234\desktopPDF)里

@echo off
echo copy all PDF files from desktop to desktopPDF folder
Rem 创建文件夹desktopPDF
md desktopPDF
copy C:\Users\Lenovo\Documents\*pdf* C:\Users\Lenovo\Documents\1234\desktopPDF
echo finished!
pause

(未完待续……)

你可能感兴趣的:(bat,powershell)