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 / C++ / MFC
  4. accessing Windows Files ..

accessing Windows Files ..

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
4 Posts 2 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.
  • S Offline
    S Offline
    Sudhakar Pasupunuri
    wrote on last edited by
    #1

    Hi.. I have created some directories and sub directories using the Unicode function "CreatedirectoryW()" as the full path exceeds 260 chars..and it was succesful from the code point of view.. Though I created these when i decided to access them from windows I couldn't do so..It is throwing an error that "can't access this folder.Path is too long".. If this is the case what is the purpose of Using Unicode function to create directories which exceeds 260 chars limit?? Is there anyway we can access these files??? Thanks Sudhakar

    R 1 Reply Last reply
    0
    • S Sudhakar Pasupunuri

      Hi.. I have created some directories and sub directories using the Unicode function "CreatedirectoryW()" as the full path exceeds 260 chars..and it was succesful from the code point of view.. Though I created these when i decided to access them from windows I couldn't do so..It is throwing an error that "can't access this folder.Path is too long".. If this is the case what is the purpose of Using Unicode function to create directories which exceeds 260 chars limit?? Is there anyway we can access these files??? Thanks Sudhakar

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      Sudhakar Pasupunuri wrote: If this is the case what is the purpose of Using Unicode function to create directories which exceeds 260 chars limit?? Is there anyway we can access these files??? You can access paths over 260 characters by adding "\\.\" to the beginning of the filename. Remember to escape the backslash.

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      S 1 Reply Last reply
      0
      • R Ryan Binns

        Sudhakar Pasupunuri wrote: If this is the case what is the purpose of Using Unicode function to create directories which exceeds 260 chars limit?? Is there anyway we can access these files??? You can access paths over 260 characters by adding "\\.\" to the beginning of the filename. Remember to escape the backslash.

        Ryan

        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

        S Offline
        S Offline
        Sudhakar Pasupunuri
        wrote on last edited by
        #3

        Thanks for the valuable info But my question here is : I want to acceess these files from windows explorer and not through code.. The end user want to open the file and want to see the contents using windows explorer..But then windows throws error that "cann't access the folder/file path is too long ".. Plz help me out in this.. Thanks Sudhakar

        R 1 Reply Last reply
        0
        • S Sudhakar Pasupunuri

          Thanks for the valuable info But my question here is : I want to acceess these files from windows explorer and not through code.. The end user want to open the file and want to see the contents using windows explorer..But then windows throws error that "cann't access the folder/file path is too long ".. Plz help me out in this.. Thanks Sudhakar

          R Offline
          R Offline
          Ryan Binns
          wrote on last edited by
          #4

          Sudhakar Pasupunuri wrote: I want to acceess these files from windows explorer and not through code.. The end user want to open the file and want to see the contents using windows explorer..But then windows throws error that "cann't access the folder/file path is too long ".. Oh, well in that case there's absolutely nothing you can do about it. It is a limitation of Windows explorer. If you want them to be able to access it, you'll have to make the path names shorter.

          Ryan

          "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

          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