差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
windows:commands [2019/01/15 20:11] – [ファイル&フォルダ関連] ともやん | windows:commands [2020/02/18 03:54] (現在) – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
====== よく使うWindowsコマンド ====== | ====== よく使うWindowsコマンド ====== | ||
- | |||
[[windows: | [[windows: | ||
- | + | [[windows:commands:network|ネットワーク関連]]\\ | |
- | ==== ファイルとフォルダのコピー[xcopy] ==== | + | [[windows: |
- | ===書式: | + | [[windows:commands:windows_repair|Windows 修復関連]]\\ |
- | < | + | |
- | > xcopy Source [Destination] [options] | + | |
- | </ | + | |
- | ^オプション | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |{**/ | + | |
- | |**/? | + | |
- | + | ||
- | ===使用例: | + | |
- | + | ||
- | == フォルダのコピー == | + | |
- | < | + | |
- | > xcopy D:\src D:\dest /i /s /e /h /y | + | |
- | </ | + | |
- | コピー先 D:\dest フォルダがなければ作成(/ | + | |
- | + | ||
- | == 更新された内容のみの差分コピー == | + | |
- | < | + | |
- | > xcopy D:\src D:\dest /d /i /s /e /h /y | + | |
- | </ | + | |
- | コピー元の更新分のみをコピー先へコピー(/ | + | |
- | + | ||
- | == バックアップコピー == | + | |
- | < | + | |
- | > xcopy D:\src D:\dest /m /i /s /e /h /y | + | |
- | </ | + | |
- | アーカイブ属性のファイルのみをコピー先へコピー(/ | + | |
- | + | ||
- | == コピー処理から除外する条件一覧を指定する == | + | |
- | 除外条件一覧ファイル(exclude_list.txt) | + | |
- | < | + | |
- | .sln | + | |
- | .cs\ | + | |
- | \bin\ | + | |
- | \obj\ | + | |
- | </ | + | |
- | ※ 除外条件を .cs\ ではなく .cs とした場合、.cs .css .csproj .cs などが対象となるので注意。 | + | |
- | < | + | |
- | > xcopy D:\src D:\dest /i /s /e /h /y / | + | |
- | </ | + | |