Click here to Skip to main content
15,889,096 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Reading properties of files Pin
Richard MacCutchan23-Mar-10 7:54
mveRichard MacCutchan23-Mar-10 7:54 
AnswerRe: Reading properties of files Pin
Steven J Jowett24-Mar-10 0:55
Steven J Jowett24-Mar-10 0:55 
QuestionVB 2008 Express, Get Modified date stamp Pin
nhsal6923-Mar-10 1:16
nhsal6923-Mar-10 1:16 
AnswerRe: VB 2008 Express, Get Modified date stamp Pin
Dave Kreskowiak23-Mar-10 1:33
mveDave Kreskowiak23-Mar-10 1:33 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
nhsal6923-Mar-10 1:53
nhsal6923-Mar-10 1:53 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
DaveAuld23-Mar-10 1:58
professionalDaveAuld23-Mar-10 1:58 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
nhsal6923-Mar-10 3:28
nhsal6923-Mar-10 3:28 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
nhsal6923-Mar-10 3:47
nhsal6923-Mar-10 3:47 
Just one more thing...

fsi.lastaccesstime, fsi.creationtime

all appear to generate day moth year in teh form "23 March 2010" but I need it to include the hours mins and sec.. any ideas??

the example I'm using is:

<br />
Imports System.IO<br />
<br />
Public Class Form1<br />
<br />
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
<br />
            ' Loop through all the immediate subdirectories of C.<br />
        For Each entry As String In Directory.GetDirectories("C:\temp\test")<br />
            DisplayFileSystemInfoAttributes(New DirectoryInfo(entry))<br />
        Next<br />
<br />
            ' Loop through all the files in C.<br />
        For Each entry As String In Directory.GetFiles("C:\temp\test")<br />
            DisplayFileSystemInfoAttributes(New FileInfo(entry))<br />
        Next<br />
        End Sub<br />
<br />
        Sub DisplayFileSystemInfoAttributes(ByVal fsi As IO.FileSystemInfo)<br />
            ' Assume that this entry is a file.<br />
            Dim entryType As String = "File"<br />
<br />
            ' Determine if this entry is really a directory.<br />
            If (fsi.Attributes And FileAttributes.Directory) = FileAttributes.Directory Then<br />
                entryType = "Directory"<br />
            End If<br />
<br />
            ' Show this entry's type, name, and creation date.<br />
        Console.WriteLine("{0} entry {1} was created on {2:D}", _<br />
                entryType, fsi.FullName, fsi.LastAccessTime)<br />
<br />
        End Sub<br />
<br />
<br />
End Class<br />


Any thoughts??

Thanks
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
Dave Kreskowiak23-Mar-10 4:05
mveDave Kreskowiak23-Mar-10 4:05 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
Wayne Gaylard23-Mar-10 4:17
professionalWayne Gaylard23-Mar-10 4:17 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
nhsal6923-Mar-10 4:27
nhsal6923-Mar-10 4:27 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
Luc Pattyn23-Mar-10 8:11
sitebuilderLuc Pattyn23-Mar-10 8:11 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
Luc Pattyn23-Mar-10 8:08
sitebuilderLuc Pattyn23-Mar-10 8:08 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
nhsal6923-Mar-10 21:39
nhsal6923-Mar-10 21:39 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
nhsal6924-Mar-10 6:01
nhsal6924-Mar-10 6:01 
GeneralRe: VB 2008 Express, Get Modified date stamp Pin
Dave Kreskowiak24-Mar-10 7:44
mveDave Kreskowiak24-Mar-10 7:44 
QuestionVB application on Thin Client Pin
thusha_pi22-Mar-10 20:22
thusha_pi22-Mar-10 20:22 
AnswerRe: VB application on Thin Client Pin
Steven J Jowett22-Mar-10 23:28
Steven J Jowett22-Mar-10 23:28 
GeneralRe: VB application on Thin Client Pin
thusha_pi22-Mar-10 23:39
thusha_pi22-Mar-10 23:39 
GeneralRe: VB application on Thin Client Pin
Dave Kreskowiak23-Mar-10 1:27
mveDave Kreskowiak23-Mar-10 1:27 
GeneralRe: VB application on Thin Client Pin
thusha_pi23-Mar-10 16:43
thusha_pi23-Mar-10 16:43 
GeneralRe: VB application on Thin Client Pin
Dave Kreskowiak23-Mar-10 17:50
mveDave Kreskowiak23-Mar-10 17:50 
QuestionHow to create a loop in visual basic which reads through a sensor through parallel port Pin
Fahimul722-Mar-10 10:42
Fahimul722-Mar-10 10:42 
AnswerRe: How to create a loop in visual basic which reads through a sensor through parallel port Pin
Dave Kreskowiak22-Mar-10 15:20
mveDave Kreskowiak22-Mar-10 15:20 
GeneralNot the LHC Pin
Luc Pattyn22-Mar-10 15:46
sitebuilderLuc Pattyn22-Mar-10 15:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.