我写了一个批处理文件来添加文件并将其提交到我的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
有解决方法吗?
答案 0 :(得分:0)
尝试在批处理文件的顶部设置其他代码页:
chcp 1252