Powershell 对文件的操作详解
echo "Using the get-service cmdlet."...cls
echo "Using powershell to operate files. "
echo "Copy file ."...recurse
echo "after remove"
ls
echo "remove all things of an folder"
批量创建、删除文件
$ii=1,2,3,4,5,6,7,8...C:\test\* -exclude *.ps1
echo "After remove :"
ls
echo "Remove with -include paramer "
$ii=1,2,3,4,5,6,7,8...*
echo "After remove :"
ls
echo "Remove with -whatif paramer "
$ii=1,2,3,4,5,6,7,8
foreach($i in $ii