通过批处理文件添加文件到SVN
Adding files to SVN through a batch file
我正在尝试自动执行一些日常琐事,例如添加文件并在 SVN 中提交它们。当我在命令行中尝试以下操作时,它就像一个魅力,但是当我通过批处理文件传递相同的命令时,它不起作用。帮助!!
TortoiseProc.exe /command:add/path:"D:\My Tasks\My test directory\concepts\test_file.txt"
我尝试添加前缀 START cmd.exe /k
,但没有用。
您是否尝试过在 运行 命令后保持 cmd 打开?
例如,在批处理文件的末尾添加:
cmd /k my_script.bat
我什至不知道 TortoiseSVN 公开了客户端实用程序。尽管如此,我还是建议使用 Subversion CLI as it is tried and tested. In fact, even TortoiseSVN's documentation states(强调我的):
Remember that TortoiseSVN is a GUI client, and this automation guide
shows you how to make the TortoiseSVN dialogs appear to collect user
input. If you want to write a script which requires no input, you
should use the official Subversion command line client instead.
非常感谢大家。当我尝试 运行 来自批处理文件的命令时,我不知道出了什么问题,但现在我做对了。
这次我尝试以下命令:
TortoiseProc.exe /command:add /path:"D:\My Tasks\My test directory\concepts\test_file.txt"
再次感谢大家的支持
我正在尝试自动执行一些日常琐事,例如添加文件并在 SVN 中提交它们。当我在命令行中尝试以下操作时,它就像一个魅力,但是当我通过批处理文件传递相同的命令时,它不起作用。帮助!!
TortoiseProc.exe /command:add/path:"D:\My Tasks\My test directory\concepts\test_file.txt"
我尝试添加前缀 START cmd.exe /k
,但没有用。
您是否尝试过在 运行 命令后保持 cmd 打开?
例如,在批处理文件的末尾添加:
cmd /k my_script.bat
我什至不知道 TortoiseSVN 公开了客户端实用程序。尽管如此,我还是建议使用 Subversion CLI as it is tried and tested. In fact, even TortoiseSVN's documentation states(强调我的):
Remember that TortoiseSVN is a GUI client, and this automation guide shows you how to make the TortoiseSVN dialogs appear to collect user input. If you want to write a script which requires no input, you should use the official Subversion command line client instead.
非常感谢大家。当我尝试 运行 来自批处理文件的命令时,我不知道出了什么问题,但现在我做对了。
这次我尝试以下命令:
TortoiseProc.exe /command:add /path:"D:\My Tasks\My test directory\concepts\test_file.txt"
再次感谢大家的支持