admin

帅气的我简直无法用语言描述!

PowerShell实现的文件同步脚本分享(powershell实战指南第3版pdf 下载)墙裂推荐

 #分别定义源、目标文件夹,注意大小写敏感 $folder_a_path="D:\a" $folder_b_path="D:\b" #遍历源文件夹下所有文件 $folders_a=gci $fold...
3年前
2960

PowerShell实现查询打开某个文件的默认应用程序(powershell 获取文件大小)太疯狂了

 $Source=@" using System; using System.Text; using System.Runtime.InteropServices; public class Win...
3年前
2600

PowerShell实现时间管理小秘书(powershell代码大全)硬核推荐

 引言 是不是觉得同样是活着,别人为啥就能做这么多事呢? 是不是经常8小时班上下来,却不晓得自己干了些啥? 是不是习惯于在Email, BBS, Google Reader间切换,感觉也挺忙的呢? ...
3年前
2670

PowerShell实现按条件终止管道的方法(powershell if语句)学到了

 有时你可能想在管道运行在某个特定的条件下,终止管道。今天来演示一个比较新颖的方式,它适用于PowerShell 2.0或着更高版本。先看代码: filter Stop-Pipeline { par...
3年前
2700

PowerShell实现批量重命名文件(如何用powershell创建一个目录)居然可以这样

 假设你有一个很大的文件夹,里面全是图片,你想对文件夹中图片的名称,按照某个统一的规则进行重命名,本文的脚本会简单进行演示: $i=0 Get-ChildItem -Path c:\pictures...
3年前
2950

PowerShell实现在字符串中查找大写字母(powershell input)干货分享

 $text='here is some text with Uppercase letters' $c=0 $position=foreach ($character in $text.ToCha...
3年前
2930

PowerShell实现参数互斥示例(powershell 脚本)没想到

 function Test-ParameterSet { [CmdletBinding(DefaultParameterSetName='NonCredential')] param ( $id,...
3年前
2940

PowerShell实现动态获取当前脚本运行时消耗的内存(powershell脚本语法)干货满满

 #requires -Version 2 $script:last_memory_usage_byte=0 function Get-MemoryUsage { $memusagebyte=[Sy...
3年前
2820

Powershell实现加密解密文本文件方法实例(powershell帮助文档)新鲜出炉

 $Passphrase=Read-Host 'Enter the secret pass phrase' $Path="$env:temp\secret.txt" $key=[Byte[]]($P...
3年前
3040

PowerShell基本使用教程(powershell教程菜鸟教程)怎么可以错过

 目录一、说明 1.1 背景说明1.2 PowerShell是什么二、PowerShell使用2.1 启动PowerShell 2.2 使用powershell 2.2.1 get-help查看帮助...
3年前
3160