你好,
我创建了一个名为 post-commit.bat 的批处理文件并将其放在 /hooks 目录下。
该文件的内容是:
TestCS.exe
exe文件的内容是:
static void Main(string[] args)
{
try
{
// create a writer and open the file
TextWriter tw = new StreamWriter("date.txt");
// write a line of text to the file
tw.WriteLine(DateTime.Now);
// close the stream
tw.Close();
}
catch { }
}
当我双击 post-commit.bat 时,它会创建 date.txt 文件。
当我在 SVN 中提交时,它需要时间,并最终给我以下消息: alt text http://img688.imageshack.us/img688/3894/exception.jpg
可能是什么问题?
谢谢!