0

我写了一个批处理文件来添加和提交文件到我的 SVN 存储库:

cd "C:\Users\User\Desktop"
for /f "usebackq tokens=2*" %%i in (`svn status ^| findstr /r "^\?"`) do svn add "%%i %%j"
for /f "usebackq tokens=2*" %%i in (`svn status ^| findstr /r "^\!"`) do svn delete "%%i %%j"
svn commit -m "Commit via Batch"

不幸的是,我遇到了德语变音符号的麻烦:

C:\Users\User\Desktop>svn add "SS06_Haupt_mit L÷sung.pdf"
svn: warning: W155010: 'C:\Users\User\Desktop\SS06_Haupt_mit L÷sung.pdf' not
 found
svn: E200009: Could not add all targets because some targets don't exist
svn: E200009: Illegal target for the requested operation

有解决方法吗?

4

1 回答 1

0

尝试在批处理文件的顶部设置另一个代码页:

chcp 1252
于 2013-07-16T09:29:39.197 回答