PDA

View Full Version : Date-specific logfile


dsmith
03-23-2004, 11:16 AM
How can I get a datetime-specific logile something like:

log04012004-0402.log

Under project properties I tried:

%PROJDIR%\%PROJROOT%%[vbld_FormatDate()]%.log

but the VBScript did not resolve. Any ideas?

Doug

kinook
03-23-2004, 12:33 PM
That works here. Hold down Shift when mousing over the field to cause the script to be evaluated for the tooltip.

dsmith
03-23-2004, 12:39 PM
I tried:

%PROJDIR%\%PROJROOT%%[vbld_FormatDate]%-%[vbld_FormatTime]%.log

and held down SHIFT key and it worked. thanks.

kinook
03-23-2004, 12:43 PM
I didn't notice the extra percent signs you had. Those should be removed:

%PROJDIR%\%PROJROOT%[vbld_FormatDate()].log

%PROJDIR%\%PROJROOT%[vbld_FormatDate]-[vbld_FormatTime].log