- グループポリシーの変更(Home不可)
- アクセス制御
- ファイル書き換え
http://fireflyframer.blog.jp/21679827.html
rmdir /s /q "%LocalAppdata%\Google\Chrome\User Data\SwReporter\"
type nul > "%LocalAppdata%\Google\Chrome\User Data\SwReporter"| # Function | |
| function F {} | |
| F | |
| # ScriptBlock | |
| & ({}) | |
| ({}).Invoke() | |
http://fireflyframer.blog.jp/21679827.html
rmdir /s /q "%LocalAppdata%\Google\Chrome\User Data\SwReporter\"
type nul > "%LocalAppdata%\Google\Chrome\User Data\SwReporter"| $s = { param($a) $a+$b } | |
| # success | |
| $s.InvokeWithContext( | |
| $null, | |
| [psvariable[]]@([psvariable]::new("b", 3)), | |
| 2 | |
| ) # 5 | |
| # fail |
| 変数 | WindowsPowerShell | Core |
|---|---|---|
| $PSVersionTable.PSVersion | 5.1.18362.628 | 6.2.4 |
| $PSVersionTable.PSEdition | Desktop | Core |
| $PSVersionTable.OS | Microsoft Windows 10.0.18363 | |
| $PSVersionTable.Platform | Win32NT | |
| $Host.Version | 5.1.18362.628 | 6.2.4 |
| $PSEdition | Desktop | Core |
| dotnet publish | |
| -c Release Release/Debug | |
| -r win10-x64 特定のプラットフォームをターゲットにするか・しないか | |
| --self-contained false 実行にランタイムのインストールがいるか・いらないか | |
| /p:PublishSingleFile=true 実行ファイルを一つにするか・しないか | |
| /p:PublishTrimmed=true 実行ファイルを小さくするか・しないか | |
| /p:PublishReadyToRun=true AOTコンパイルするか, ngenほどの効果はない, サイズには関係ない | |
| Unixで実行ファイルを小さくするために"グローバリゼーション インバリアント モード" を使用するか | |
| -30MBくらい小さくなる。.csprojに直接記述する。 |
| amdapfxx [-k] [-s filename] [-p pathname] [-v version number] [-r] -b filename | |
| -k To sign or resign the AMD binary file | |
| - Optionally use -o to specify binary name | |
| -s filename of the XML content | |
| - Can be used with -p -k and -o | |
| - Use this parameter multiple times to merge XML Files. | |
| - Use this parameter exactly once if -r is specified. | |
| -b filename of the file to contain the Binary content. | |
| - Required in all cases except system/oem binary to xml conversion. | |
| -l filename of the progress log. |
Windows Defender memory not released
It may be a Windows Defender problem, but this is the only app having the trouble afaik.
usr\bin\bash.exe increases memory usage of Windows DefenderThis does not occur by adding an exclusion to Windows Security
C:\Program Files\Git\usr\bin\bash.exe as process.
| # this will leave trailing : | |
| removeFromPath() { | |
| PATH=$(echo -n $PATH | tr ":" "\n" | fgrep -vx "$1" | tr "\n" ":") | |
| } |
| powershell -command Start-Process cmd -verb runas -ArgumentList /k,cd,$PWD | |
| # 相対パス | |
| powershell -command Start-Process notepad -verb runas -ArgumentList (Resolve-Path .\file.txt) | |
| powershell -command Start-Process notepad -verb runas -ArgumentList $PWD\file.txt |