HI,
I've created a batch file called post-commit.bat and placed it under the /hooks directory.
The content of the file is:
TestCS.exe
The content of the exe file is:
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 { }
}
When I double-click on post-commit.bat, it creates the date.txt file.
When I commit in SVN, it takes time, and eventually gives me the following message:
What can be the problem?
Thanks!