Build events

Maybe I am missing something, but I have this command my post-build-event:
$(PROJECTPATH)_deploy.cmd
This should be excuted, shouldn´t it?

I can´t get the events to work. :- (

$(PROJECTPATH)

stands for the whole path of the project. This means that if you compile a project under

C:\Temp\Project1.dproj

the macro is equal to this path. It is the directory plus the filename. In his example

$(PROJECTPATH)_deploy.cmd

the file

C:\Temp\Project1.dproj_deploy.cmd

is called.

You might also consider to use macro $(PROJECTDIR)

Unfortunately I am unable to get this to work. The events aren´t called. What I found, however, is this error message, when the output is set to detailed:
Das Make-Ziel wurde aufgrund fehlerhafter Bedingungen übersprungen. (($(TMSWebProject)!='2')) wurde als ((2!='2')) ausgewertet.

Maybe these lines are important:

    <PropertyGroup Condition="'$(Base)'!=''">
        <DCC_DcuOutput>.\$(Platform)\$(Config)</DCC_DcuOutput>
        <DCC_ExeOutput>.\$(Platform)\$(Config)</DCC_ExeOutput>
        <DCC_E>false</DCC_E>
        <DCC_N>false</DCC_N>
        <DCC_S>false</DCC_S>
        <DCC_F>false</DCC_F>
        <DCC_K>false</DCC_K>
        <DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
        <TMSWebProject>2</TMSWebProject>
        <Icon_MainIcon>$(BDS)\bin\delphi_PROJECTICON.ico</Icon_MainIcon>
        <Icns_MainIcns>$(BDS)\bin\delphi_PROJECTICNS.icns</Icns_MainIcns>
        <SanitizedProjectName>WebRezept</SanitizedProjectName>
        <PostBuildEvent><![CDATA[echo $(PROJECTDIR) > c:\temp\log.txt
cd >> c:\temp\log.txt
$(PostBuildEvent)]]></PostBuildEvent>

Any idea?

It's very strange. We can't reproduce this. Is this happening with any TMS WEB Core project?

No, up till now this is only with this project.

I deleted the dproj and added the events again - now the events are executed as expected.