Home All Groups Group Topic Archive Search About

how do I get date and time of compilation

Author
6 Jun 2006 1:35 PM
gs
should I use property? class level variable and use pre-processor?

Author
6 Jun 2006 2:35 PM
AMercer
> should I use property? class level variable and use pre-processor?

I use the exe file's date:
   FileDateTime(Application.ExecutablePath)
There may be something better in in fw 2.0.
Author
6 Jun 2006 4:56 PM
gs
thank you. that is good enough
Show quoteHide quote
"AMercer" <AMer***@discussions.microsoft.com> wrote in message
news:90A50396-740A-4446-93F6-CDF068213B6A@microsoft.com...
>> should I use property? class level variable and use pre-processor?
>
> I use the exe file's date:
>   FileDateTime(Application.ExecutablePath)
> There may be something better in in fw 2.0.
>
Author
6 Jun 2006 5:02 PM
gs
oops. Application is not defined when I try to use
FileDateTime(Application.ExecutablePath)
in new()
what other context can I use it?

Show quoteHide quote
"AMercer" <AMer***@discussions.microsoft.com> wrote in message
news:90A50396-740A-4446-93F6-CDF068213B6A@microsoft.com...
>> should I use property? class level variable and use pre-processor?
>
> I use the exe file's date:
>   FileDateTime(Application.ExecutablePath)
> There may be something better in in fw 2.0.
>
Author
6 Jun 2006 6:12 PM
AMercer
> oops. Application is not defined when I try to use
> FileDateTime(Application.ExecutablePath)
>  in new()
> what other context can I use it?

It is probably your imports.  The fully qualified names are:
    Microsoft.VisualBasic.FileDateTime
    System.Windows.Forms.Application.ExecutablePath
Author
16 Jun 2006 6:00 PM
gs
thank you

However I still get trouble with
Dim appPathFn As String

appPathFn = System.Windows.Forms.Application.ExecutablePath

         Windows is not a member of System

I am using visual basic .net express 2005. don't know if that make any
difference.  So far Google has not helped be yet

Show quoteHide quote
"AMercer" <AMer***@discussions.microsoft.com> wrote in message
news:76D867B8-F8AC-47AB-ABE2-9EF217BA42F4@microsoft.com...

>> oops. Application is not defined when I try to use
>> FileDateTime(Application.ExecutablePath)
>>  in new()
>> what other context can I use it?
>
> It is probably your imports.  The fully qualified names are:
>    Microsoft.VisualBasic.FileDateTime
>    System.Windows.Forms.Application.ExecutablePath
>