RE: Error on Post Commit Hook.BAT
From: Waseem Bokhari <waseem.bokhari_at_netsoltech.com>
Date: Wed, 2 Feb 2011 12:36:11 +0500
I am not using any email program But Only using my SMTP SERVER
This line looks wrong. Try using a backslash ('\') instead of a forward
If you're going to be creating or editing Windows batch files, I strongly
-- David Chapman dcchapman_at_acm.org Chapman Consulting -- San Jose, CA > >Even I have changed the slashed but the message was same. > >Please advice. Did you change both lines? I also see forward slashes in the line which is described as "SEND THE EMAIL" at the very end. For that matter, this line looks wrong too. Earlier, you set the variable DIR to "E:\Repositories\WSBokhari\hooks". The value of this variable will be substituted whenever "%DIR%" appears. Thus if you have "SET MESSAGE_FILE=%DIR%\message.txt" this is the same as "SET MESSAGE_FILE=E:\Repositories\WSBokhari\hooks\message.txt" and the value of this variable will be substituted whenever "%MESSAGE_FILE%" appears, as it does on the last line. If you replace the forward slashes in the last line with backslashes and perform the substitution of "%MESSAGE_FILE%", the first word of the line will become "E:\Repositories\WSBokhari\E:\Repositories\WSBokhari\hooks\message.txt", which is obviously an invalid Windows path name. The message file is clearly not intended to include the name of the mail program, so you need to supply the name of the E-mail program. I don't know what that would be. Nor do I know the command-line parameters for the E-mail program, so I cannot tell you whether the syntax of this line is correct. But if your E-mail send program is "E:\Repositories\WSBokhari\hooks\send_message.exe" and it accepted the parameters you have listed, the last line of the batch program would be: E:\Repositories\WSBokhari\hooks\send_message.exe %MESSAGE_FILE% %server% %to% %from% %subj% %auth% You really need a book on Windows batch file processing. -- David Chapman dcchapman_at_acm.org Chapman Consulting -- San Jose, CA DISCLAIMER: This e-mail and any file transmitted with it are confidential and intended solely for the use of the addressee. If you are not the intended recipient, you are hereby advised that any dissemination, distribution or copy of this email or its attachments is strictly prohibited. If you have received this email in error, please immediately notify us by return email and destroy this email message and its attachments. This communication may contain forward-looking statements relating to the development of NetSol Technologies' products and services and future operations. The words "believe," "expect," "anticipate," "intend," variations of such words, and similar expressions, identify forward looking statements, but their absence does not mean that the statement is not forward-looking. Views and opinions contained herein are those of the author of this email and do not necessarily represent those of NetSol Technologies. Statements contained herein are not guarantees of future performance and are subject to certain risks, uncertainties and assumptions that are difficult to predict. The company will not undertake to update any statements contained herein. WARNING: The recipient should check this email and any attachment for the presence of viruses. Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company does not accept responsibility for any loss or damage arising from the use of this email or attachment. Note: Please consider the environment before printing this e-mail.
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.