1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SVNで管理している複数のファイルを指定のフォルダ配下に強制exportするスクリプト

Posted at

下記の形式でcsvにexportしたいsvnのファイルのURLとexport先のパスを設定し、
スクリプトを実行するとファイルがexportされる。

csvの設定行が1行(ヘッダを含めてcsvが2行)のみだとエラーが発生するので注意。
1行の場合はそのままコマンドからexportするのが一番。

svnpath,dirpath
SVNのファイルのURL,export先のパス
$svnexepath = svn.exeのパス
$csvobj = Import-Csv csvのパス -Encoding default

for ($i =0 ; $i -lt $csvobj.length ;$i++){
    cmd /c $svnexepath export --force $csvobj.svnpath[$i] $csvobj.dirpath[$i]
}
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?