Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get modified date from file in C# on Windows Mobile?

I make a file in PC, and I want to transfer it to a PPC (Windows Mobile).

How can I get the modified date of this file?

(I need it on Windows Mobile.)

like image 638
Gold Avatar asked Jul 26 '09 19:07

Gold


People also ask

How can I get the date modified of a file?

Windows file properties You can also see the modified date by viewing the file properties. Right-click the file and select Properties. In the Properties window, the Created date, Modified date, and Accessed date is displayed, similar to the example below.

What is the modified date on a file?

The modified date of a file or folder represents the last time that file or folder was updated. If you're having trouble with the modified dates of your files or folders, check out these frequently-asked questions.

How do I find the modified date of a folder?

You can use the Windows forfiles command to quickly get a list of the date modified and time modified of all of the files in a directory. Enter this script in a text file and save it with the extension '. bat'.

Which command is used to update modification date for any file?

The touch command changes certain dates for each file argument. By default, touch sets both the date of last file modification and the date of last file access to the current time.


1 Answers

FileInfo.LastWriteTime and FileInfo.LastWriteTimeUtc should register this information.

like image 128
Steve Guidi Avatar answered Sep 20 '22 02:09

Steve Guidi