Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. open directory and list files

open directory and list files

Scheduled Pinned Locked Moved C#
comsysadminhelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nisrinee51
    wrote on last edited by
    #1

    Hello, I was wondering: if there is a possible code to look for a directory and then open it by displaying all the files in the directory in checkboxes, then copy the checked files to the server I will appreciate the help a lot Nisrine:):rose: nisrinee51@hotmail.com

    S 1 Reply Last reply
    0
    • N nisrinee51

      Hello, I was wondering: if there is a possible code to look for a directory and then open it by displaying all the files in the directory in checkboxes, then copy the checked files to the server I will appreciate the help a lot Nisrine:):rose: nisrinee51@hotmail.com

      S Offline
      S Offline
      Saikat Sen
      wrote on last edited by
      #2

      1/ Create a checklistbox to display checkboxes + strings 2/ OpenFileDialog to open a dialog 3/ Directory.GetFiles to list all files of a directory 4/ File.Copy to copy files.

      A 1 Reply Last reply
      0
      • S Saikat Sen

        1/ Create a checklistbox to display checkboxes + strings 2/ OpenFileDialog to open a dialog 3/ Directory.GetFiles to list all files of a directory 4/ File.Copy to copy files.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        the openfiledialog opens the file only not the directory how can I get it to open the directory where the files are listed??? Thanks Nisrine

        W 1 Reply Last reply
        0
        • A Anonymous

          the openfiledialog opens the file only not the directory how can I get it to open the directory where the files are listed??? Thanks Nisrine

          W Offline
          W Offline
          Wjousts
          wrote on last edited by
          #4

          Use a FolderBrowserDialog instead (NB: This is only available with the .NET 1.1).

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups