it技術:バッチファイル
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン | |||
it技術:バッチファイル [2021/04/09 10:22] – [一定期間経過した古いファイルを自動削除する] yajuadmin | it技術:バッチファイル [2021/04/09 10:23] (現在) – [UNCパスの対応方法] yajuadmin | ||
---|---|---|---|
行 171: | 行 171: | ||
< | < | ||
- | SET NET_DIR=\\192.168.64.100\work\newdaysys\ | + | SET NET_DIR=\\192.168.64.100\work\ |
net use %NET_DIR% xxxxxxx / | net use %NET_DIR% xxxxxxx / | ||
pushd %NET_DIR% | pushd %NET_DIR% | ||
- | forfiles /M *.txt /C "cmd /c if @isdir==FALSE del /s @path" /D -30 >> | + | forfiles /M *.txt /C "cmd /c if @isdir==FALSE del /s @path" /D -30 >> |
popd | popd | ||
</ | </ |
it技術/バッチファイル.txt · 最終更新: 2021/04/09 10:23 by yajuadmin