dropbox-ignore.ps1
を好きなとこに置く。"\path\to\pwsh.exe" -ExecutionPolicy RemoteSigned -File \path\to\dropbox-ignore.ps1
でショートカットリンクを作る。- 作ったショートカットに無視したいファイルをD&Dする。
Created
May 13, 2023 11:35
-
-
Save yukikaoru/5bb53bcdb6b1d238eedd96dedc4677af to your computer and use it in GitHub Desktop.
Dropboxの無視ファイルに追加するためのスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach($path in $args) { | |
if (Test-Path "$path") | |
{ | |
Write-Host "--- $path is dropbox ignores ---"; | |
Set-Content -Path "$path" -Stream com.dropbox.ignored -Value 1; | |
} | |
} | |
Pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment