By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,919 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,919 IT Pros & Developers. It's quick & easy.

Find out when text file last saved

P: n/a
Hi,

I import data every evening through a scheduled task from a text file.
Once the data is imported, an email is sent to a user saying how much
data etc.. was in the file.

In case the file has not been updated each day, i would like to
include in the email the date and time the file was last updated. Is
there some way to get this using vb.net from a text file i.e. to tell
when the file was last saved.

Thanks for all help.
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"kieran" <ki********@hotmail.com> schrieb:
In case the file has not been updated each day, i would like to
include in the email the date and time the file was last updated. Is
there some way to get this using vb.net from a text file i.e. to tell
when the file was last saved.


'System.IO.File.GetLastWriteTime'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2

P: n/a
"kieran" <ki********@hotmail.com> schrieb:
In case the file has not been updated each day, i would like to
include in the email the date and time the file was last updated. Is
there some way to get this using vb.net from a text file i.e. to tell
when the file was last saved.


'System.IO.File.GetLastWriteTime'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3

P: n/a
Aye, there is:

File.GetLastWriteTime(strTheFilePath)

"kieran" <ki********@hotmail.com> wrote in message
news:b3**************************@posting.google.c om...
Hi,

I import data every evening through a scheduled task from a text file.
Once the data is imported, an email is sent to a user saying how much
data etc.. was in the file.

In case the file has not been updated each day, i would like to
include in the email the date and time the file was last updated. Is
there some way to get this using vb.net from a text file i.e. to tell
when the file was last saved.

Thanks for all help.

Nov 21 '05 #4

P: n/a
Aye, there is:

File.GetLastWriteTime(strTheFilePath)

"kieran" <ki********@hotmail.com> wrote in message
news:b3**************************@posting.google.c om...
Hi,

I import data every evening through a scheduled task from a text file.
Once the data is imported, an email is sent to a user saying how much
data etc.. was in the file.

In case the file has not been updated each day, i would like to
include in the email the date and time the file was last updated. Is
there some way to get this using vb.net from a text file i.e. to tell
when the file was last saved.

Thanks for all help.

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.