dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 2 of 6 FirstFirst 1234 ... LastLast
Results 16 to 30 of 85

Thread: File System API's

  1. #16
    Brad Martinez Guest

    Re: File System API's


    Karl

    >Good recovery, though. Got one in sideways. ;-)


    Indeed. And boy, didn't this turn into the happy little
    thread... :-)

    Brad



  2. #17
    Brad Martinez Guest

    Re: File System API's


    Karl

    >Good recovery, though. Got one in sideways. ;-)


    Indeed. And boy, didn't this turn into the happy little
    thread... :-)

    Brad



  3. #18
    Dean Earley Guest

    Re: File System API's

    ??????????????????????????????????
    )

    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems
    "Karl E. Peterson" <karl@mvps.org> wrote in message news:3b7dbf31@news.devx.com...
    > No doubt about that!
    > --
    > http://www.mvps.org/vb
    >
    > "Don Bradner" <don@arcatapet.com> wrote in message
    > news:7ierntcv1rg5as34ko4uh95tug5stp04fs@4ax.com...
    > > "Randy Birch" <rgb@mvps.org> wrote:
    > >
    > > >But I've got two now :- )

    > >
    > > Somehow I don't think you need to worry. But if you guys want to perpetuate
    > > threads like this that I can tack mine onto, I won't complain (although we may
    > > leave a few people scratching their heads!)
    > > --
    > > Don Bradner
    > > don@arcatapet.com
    > > www.arcatapet.net

    >




  4. #19
    Dean Earley Guest

    Re: File System API's

    ??????????????????????????????????
    )

    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems
    "Karl E. Peterson" <karl@mvps.org> wrote in message news:3b7dbf31@news.devx.com...
    > No doubt about that!
    > --
    > http://www.mvps.org/vb
    >
    > "Don Bradner" <don@arcatapet.com> wrote in message
    > news:7ierntcv1rg5as34ko4uh95tug5stp04fs@4ax.com...
    > > "Randy Birch" <rgb@mvps.org> wrote:
    > >
    > > >But I've got two now :- )

    > >
    > > Somehow I don't think you need to worry. But if you guys want to perpetuate
    > > threads like this that I can tack mine onto, I won't complain (although we may
    > > leave a few people scratching their heads!)
    > > --
    > > Don Bradner
    > > don@arcatapet.com
    > > www.arcatapet.net

    >




  5. #20
    Klaus H. Probst Guest

    Re: File System API's

    So this is how it's done. Interesting <gd&r>

    ____________
    Klaus

    "Brad Siemens" <ebspc@sympatico.ca> wrote in message
    news:3b7bd025@news.devx.com...



  6. #21
    Klaus H. Probst Guest

    Re: File System API's

    So this is how it's done. Interesting <gd&r>

    ____________
    Klaus

    "Brad Siemens" <ebspc@sympatico.ca> wrote in message
    news:3b7bd025@news.devx.com...



  7. #22
    Brad Siemens Guest

    Re: File System API's

    I'm tired, stupid or both... How what's done?

    Brad

    "Klaus H. Probst" <kprobst@v b b o x.com> wrote in message
    news:3b896f22$1@news.devx.com...
    > So this is how it's done. Interesting <gd&r>
    >
    > ____________
    > Klaus
    >
    > "Brad Siemens" <ebspc@sympatico.ca> wrote in message
    > news:3b7bd025@news.devx.com...
    >
    >




  8. #23
    Brad Siemens Guest

    Re: File System API's

    I'm tired, stupid or both... How what's done?

    Brad

    "Klaus H. Probst" <kprobst@v b b o x.com> wrote in message
    news:3b896f22$1@news.devx.com...
    > So this is how it's done. Interesting <gd&r>
    >
    > ____________
    > Klaus
    >
    > "Brad Siemens" <ebspc@sympatico.ca> wrote in message
    > news:3b7bd025@news.devx.com...
    >
    >




  9. #24
    Klaus H. Probst Guest

    Re: File System API's

    Brad,

    "Brad Siemens" <ebspc@sympatico.ca> wrote in message
    news:3b8a6c8c$1@news.devx.com...
    > I'm tired, stupid or both... How what's done?


    None of the above, if that helps :-)

    It's an inside joke of sorts... never mind :-)


    ____________
    Klaus




  10. #25
    Klaus H. Probst Guest

    Re: File System API's

    Brad,

    "Brad Siemens" <ebspc@sympatico.ca> wrote in message
    news:3b8a6c8c$1@news.devx.com...
    > I'm tired, stupid or both... How what's done?


    None of the above, if that helps :-)

    It's an inside joke of sorts... never mind :-)


    ____________
    Klaus




  11. #26
    Dean Earley Guest

    Re: File System API's

    Just to give this poor guy an actual answer )

    Have a look in MSDN for FindFirstFile and FindNextFile

    This will fill a listbox with all files from a directory

    Public Function FillFileList(ListBox As Object, Path As String, Optional Pattern As String = "*.*", Optional ByRef FileCount As
    Long, Optional ByRef FileSize As Long, Optional Index As Long = 0, Optional ClearFirst As Boolean = True)
    Dim SearchHandle As Long
    Dim FileInfo As WIN32_FIND_DATA
    Dim FileName As String

    FileCount = 0
    If Right(Path, 1) <> "\" Then Path = Path + "\"
    SearchHandle = FindFirstFile(Path + Pattern, FileInfo)
    If ClearFirst Then ListBox.Clear
    If SearchHandle <> INVALID_HANDLE_VALUE Then
    Do
    FileName = FileInfo.cFileName
    If InStr(FileName, vbNullChar) > 0 Then FileName = Left(FileName, InStr(FileName, vbNullChar) - 1)
    If (FileName <> ".") And (FileName <> "..") Then
    FileCount = FileCount + 1
    FileSize = FileSize + (FileInfo.nFileSizeHigh * MAXDWORD) + FileInfo.nFileSizeLow
    ListBox.AddItem FileName
    ListBox.ItemData(ListBox.NewIndex) = Index
    End If
    Loop Until FindNextFile(SearchHandle, FileInfo) = 0
    FindClose SearchHandle
    End If
    End Function

    It also has some other things in there, but i'll leave the task of removing them to you.

    Have fun

    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems
    "Brad Siemens" <ebspc@sympatico.ca> wrote in message news:3b7bd025@news.devx.com...
    > Does anyone know of a API based File System Sample. ie. Populating a
    > ListView with Folders and Files, etc. VBNet is excellent but not exactly
    > what I'm looking for.
    >
    > TIA
    > Brad
    >
    >




  12. #27
    Dean Earley Guest

    Re: File System API's

    Just to give this poor guy an actual answer )

    Have a look in MSDN for FindFirstFile and FindNextFile

    This will fill a listbox with all files from a directory

    Public Function FillFileList(ListBox As Object, Path As String, Optional Pattern As String = "*.*", Optional ByRef FileCount As
    Long, Optional ByRef FileSize As Long, Optional Index As Long = 0, Optional ClearFirst As Boolean = True)
    Dim SearchHandle As Long
    Dim FileInfo As WIN32_FIND_DATA
    Dim FileName As String

    FileCount = 0
    If Right(Path, 1) <> "\" Then Path = Path + "\"
    SearchHandle = FindFirstFile(Path + Pattern, FileInfo)
    If ClearFirst Then ListBox.Clear
    If SearchHandle <> INVALID_HANDLE_VALUE Then
    Do
    FileName = FileInfo.cFileName
    If InStr(FileName, vbNullChar) > 0 Then FileName = Left(FileName, InStr(FileName, vbNullChar) - 1)
    If (FileName <> ".") And (FileName <> "..") Then
    FileCount = FileCount + 1
    FileSize = FileSize + (FileInfo.nFileSizeHigh * MAXDWORD) + FileInfo.nFileSizeLow
    ListBox.AddItem FileName
    ListBox.ItemData(ListBox.NewIndex) = Index
    End If
    Loop Until FindNextFile(SearchHandle, FileInfo) = 0
    FindClose SearchHandle
    End If
    End Function

    It also has some other things in there, but i'll leave the task of removing them to you.

    Have fun

    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems
    "Brad Siemens" <ebspc@sympatico.ca> wrote in message news:3b7bd025@news.devx.com...
    > Does anyone know of a API based File System Sample. ie. Populating a
    > ListView with Folders and Files, etc. VBNet is excellent but not exactly
    > what I'm looking for.
    >
    > TIA
    > Brad
    >
    >




  13. #28
    Ramesh Guest

    Re: File System API's


    Hi,
    How can i stop user from deleting my folder for his systeam ?
    Thanks

    "Dean Earley" <dean.earley@icode.co.uk> wrote:
    >Just to give this poor guy an actual answer )
    >
    >Have a look in MSDN for FindFirstFile and FindNextFile
    >
    >This will fill a listbox with all files from a directory
    >
    >Public Function FillFileList(ListBox As Object, Path As String, Optional

    Pattern As
    >String = "*.*", Optional ByRef FileCount As
    >Long, Optional ByRef FileSize As Long, Optional Index As Long = 0, Optional

    ClearFirst
    >As Boolean = True)
    >Dim SearchHandle As Long
    >Dim FileInfo As WIN32_FIND_DATA
    >Dim FileName As String
    >
    > FileCount = 0
    > If Right(Path, 1) <> "\" Then Path = Path + "\"
    > SearchHandle = FindFirstFile(Path + Pattern, FileInfo)
    > If ClearFirst Then ListBox.Clear
    > If SearchHandle <> INVALID_HANDLE_VALUE Then
    > Do
    > FileName = FileInfo.cFileName
    > If InStr(FileName, vbNullChar) > 0 Then FileName = Left(FileName,

    InStr(FileName,
    >vbNullChar) - 1)
    > If (FileName <> ".") And (FileName <> "..") Then
    > FileCount = FileCount + 1
    > FileSize = FileSize + (FileInfo.nFileSizeHigh * MAXDWORD) + FileInfo.nFileSizeLow
    > ListBox.AddItem FileName
    > ListBox.ItemData(ListBox.NewIndex) = Index
    > End If
    > Loop Until FindNextFile(SearchHandle, FileInfo) = 0
    > FindClose SearchHandle
    > End If
    >End Function
    >
    >It also has some other things in there, but i'll leave the task of removing

    them to
    >you.
    >
    >Have fun
    >
    >--
    >Dean Earley (dean.earley@icode.co.uk)
    >Assistant Developer
    >
    >iCode Systems
    >"Brad Siemens" <ebspc@sympatico.ca> wrote in message news:3b7bd025@news.devx.com...
    >> Does anyone know of a API based File System Sample. ie. Populating a
    >> ListView with Folders and Files, etc. VBNet is excellent but not exactly
    >> what I'm looking for.
    >>
    >> TIA
    >> Brad
    >>
    >>

    >
    >



  14. #29
    Ramesh Guest

    Re: File System API's


    Hi,
    How can i stop user from deleting my folder for his systeam ?
    Thanks

    "Dean Earley" <dean.earley@icode.co.uk> wrote:
    >Just to give this poor guy an actual answer )
    >
    >Have a look in MSDN for FindFirstFile and FindNextFile
    >
    >This will fill a listbox with all files from a directory
    >
    >Public Function FillFileList(ListBox As Object, Path As String, Optional

    Pattern As
    >String = "*.*", Optional ByRef FileCount As
    >Long, Optional ByRef FileSize As Long, Optional Index As Long = 0, Optional

    ClearFirst
    >As Boolean = True)
    >Dim SearchHandle As Long
    >Dim FileInfo As WIN32_FIND_DATA
    >Dim FileName As String
    >
    > FileCount = 0
    > If Right(Path, 1) <> "\" Then Path = Path + "\"
    > SearchHandle = FindFirstFile(Path + Pattern, FileInfo)
    > If ClearFirst Then ListBox.Clear
    > If SearchHandle <> INVALID_HANDLE_VALUE Then
    > Do
    > FileName = FileInfo.cFileName
    > If InStr(FileName, vbNullChar) > 0 Then FileName = Left(FileName,

    InStr(FileName,
    >vbNullChar) - 1)
    > If (FileName <> ".") And (FileName <> "..") Then
    > FileCount = FileCount + 1
    > FileSize = FileSize + (FileInfo.nFileSizeHigh * MAXDWORD) + FileInfo.nFileSizeLow
    > ListBox.AddItem FileName
    > ListBox.ItemData(ListBox.NewIndex) = Index
    > End If
    > Loop Until FindNextFile(SearchHandle, FileInfo) = 0
    > FindClose SearchHandle
    > End If
    >End Function
    >
    >It also has some other things in there, but i'll leave the task of removing

    them to
    >you.
    >
    >Have fun
    >
    >--
    >Dean Earley (dean.earley@icode.co.uk)
    >Assistant Developer
    >
    >iCode Systems
    >"Brad Siemens" <ebspc@sympatico.ca> wrote in message news:3b7bd025@news.devx.com...
    >> Does anyone know of a API based File System Sample. ie. Populating a
    >> ListView with Folders and Files, etc. VBNet is excellent but not exactly
    >> what I'm looking for.
    >>
    >> TIA
    >> Brad
    >>
    >>

    >
    >



  15. #30
    mrfelis Guest

    Re: File System API's

    You guys getting paid to post these messages?

    --
    ~~~
    !ti timda I ,KO
    ..em deppals nocaeB sivaM
    !draH
    ~~
    C'Ya,
    mrfelis@yahoo!com
    Karl E. Peterson <karl@mvps.org> wrote in message
    news:3b7dbf31@news.devx.com...
    > No doubt about that!
    > --
    > http://www.mvps.org/vb
    >
    > "Don Bradner" <don@arcatapet.com> wrote in message
    > news:7ierntcv1rg5as34ko4uh95tug5stp04fs@4ax.com...
    > > "Randy Birch" <rgb@mvps.org> wrote:
    > >
    > > >But I've got two now :- )

    > >
    > > Somehow I don't think you need to worry. But if you guys want to

    perpetuate
    > > threads like this that I can tack mine onto, I won't complain (although

    we may
    > > leave a few people scratching their heads!)
    > > --
    > > Don Bradner
    > > don@arcatapet.com
    > > www.arcatapet.net

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center