随笔分类 - Power Shell
摘要:https://chocolatey.org/install Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.Serv
阅读全文
posted @ 2020-08-13 16:18
fndefbwefsowpvqfx
摘要:https://gallery.technet.microsoft.com/scriptcenter #By BigTeddy 05 September 2011 #This script uses the .NET FileSystemWatcher class to monitor file e
阅读全文
posted @ 2020-08-05 14:03
fndefbwefsowpvqfx
摘要:wt `;-M `; -d D:\dir1\ `; split-pane -d D:\dir2\ `; split-pane -H -d D:\dir3\ wt --tabColor "#009999" --title "xyz" -d "C:\\aaa\\bbb\\ccc"
阅读全文
posted @ 2020-08-05 10:49
fndefbwefsowpvqfx
摘要:Start-Process powershell -verb runas -ArgumentList "-file c:\cmd\task.ps1" 开启多个tab,并分别调至不同path wt `; -M `; new-tab -d D:\path1\ `; new-tab -d D:\path2
阅读全文
posted @ 2020-08-05 10:46
fndefbwefsowpvqfx
摘要:查看当前的powershell 从哪里读配置$profilepowershell 每次启动前会读取 C:\Users\$name\Documents\PowerShell\Microsoft.PowerShell_profile.ps1在这文件里配置上alias等管理员身份打开powershell,
阅读全文
posted @ 2020-08-05 10:45
fndefbwefsowpvqfx
摘要:在path变量后添加,对变量长度无限制,需要重启后生效 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path /t REG_SZ /d "%path%;c:\newpath;whatev
阅读全文
posted @ 2018-03-08 13:50
fndefbwefsowpvqfx
摘要:https://github.com/PowerShell/PowerShell PowerShell for every system! PowerShell Core is a cross-platform (Windows, Linux, and macOS) automation and c
阅读全文
posted @ 2017-09-27 17:34
fndefbwefsowpvqfx
摘要:获取文件夹下所有文件的绝对路径与文件名包含文件名后缀。包含子文件夹中的文件。 dir 路径 /s /b /a:-d > d:\result.txt 批量重命名 ren *.txt *.html 将txt后缀改为html dir e: /a /s /d /w > d:c.txt tree e: /f
阅读全文
posted @ 2016-06-16 17:52
fndefbwefsowpvqfx

浙公网安备 33010602011771号