Max pad lengte XP en Vista > 256 tekens?

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
:?

Hallo,

Ik heb een vraagje. We hebben hier op kantoor een probleem met de max padlengte van 256 tekens die XP normaliter hanteert. Bepaalde documentatie heeft een zodanige dir structuur dat de padlengte eer dan 256 tekens lang is, en helaas is de directory structuur daarvan niet aan te passen. Met windows XP dat wij gebruiken is dit niet mogelijk...

Heeft iemand enig idee of windows XP is aan te passen zodat een padlengte van meer dan 256 tekens mogelijk wordt? Zo nee, is er dan een andere oplossing? Ondersteunt Vista padlentes van meer dan 256 tekens?

Ik weet dat Mac's wel langere paden aankunnen, maar helaas is switchen naar Mac ook geen optie.

Alvast hartelijk dank.

Groeten,

Acties:
  • 0 Henk 'm!

  • Noork
  • Registratie: Juni 2001
  • Niet online
Volgens mij is dit gebonden aan NTFS. En Vista werkt ook met NTFS, dus dan weet je het antwoord al.

Zie verder b.v.:
[XP] bestand op ntfs partitie opent niet, pad te lang
Wikipedia: NTFS

Wellicht kun je een Linux filesystem gebruiken? Ik weet verder niet hoe het daarin zit met beperkingen, maar wellicht biedt dat een oplossing. Je kunt met behulp van bepaalde drivers een Linux partitie gebruiken onder Windows.

Acties:
  • 0 Henk 'm!

  • tjtristan
  • Registratie: Augustus 2005
  • Laatst online: 12-06 00:17
http://msdn.microsoft.com/en-us/library/aa365247.aspx
Maximum Path Length
In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is "D:\<some 256 character path string><NUL>" where "<NUL>" represents the invisible terminating null character for the current system codepage. (The characters < > are used here for visual clarity and cannot be part of a valid path string.)

Note File I/O functions in the Windows API convert "/" to "\" as part of converting the name to an NT-style name, except when using the "\\?\" prefix as detailed in the following sections.

The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of approximately 32,000 characters. This type of path is composed of components separated by backslashes, each up to 255 characters in length. To specify an extended-length path, use the "\\?\" prefix. For example, "\\?\D:\<very long path>". (The characters < > are used here for visual clarity and cannot be part of a valid path string.)

Note The maximum path of 32,000 characters is approximate, because the "\\?\" prefix may be expanded by the system at run time to a longer string, and this expansion applies to the total length.

To specify such a path using UNC, use the "\\?\UNC\" prefix. For example, "\\?\UNC\server\share". These prefixes are not used as part of the path itself. They indicate that the path should be passed to the system with minimal modification, which means that you cannot use forward slashes to represent path separators, or a period to represent the current directory. Also, you cannot use the "\\?\" prefix with a relative path, therefore relative paths are limited to MAX_PATH characters.

When using an API to create a directory, the specified path cannot be so long that you cannot append an 8.3 file name (that is, the directory name cannot exceed MAX_PATH minus 12).

The shell and the file system have different requirements. It is possible to create a path with the Windows API that the shell user interface cannot handle.
Niet erg lastig om te vinden hoor :)

http://specs.tweak.to/15535


Verwijderd

Topicstarter
Bedankt voor de reacties!

Ik heb verder gezocht naar de mogelijkheden uit bovenstaande reactie om tot 32,000 karakters te kunnen gebruiken in pad. Wat ik ervan begrijp is dat dit vanuit b.v. VBA code of DOS mogelijk is door middels van \\?\ voor het lange pad te plaatsen. Echter, in dit verband moet het vanuit Windows Verkenners, MS Office en Adobe Professional met de langere paden gewerkt kunnen worden. Als ik \\?\ voor een pad zet in de verkenner of in MS Word, dan krijg ik nog steeds de melding dat het pad te lang is. Bestaat er een manier om toch te realiseren dat vanuit de verkenner en vanuit Office applicaties met paden van meer dan 256 tekens gewerkt kunnen worden?

Alvast hartelijk dank voor de hulp!

Adios,

Acties:
  • 0 Henk 'm!

  • djexplo
  • Registratie: Oktober 2000
  • Laatst online: 07-07 15:40
Verwijderd schreef op donderdag 20 november 2008 @ 23:45:
Bedankt voor de reacties!

Ik heb verder gezocht naar de mogelijkheden uit bovenstaande reactie om tot 32,000 karakters te kunnen gebruiken in pad. Wat ik ervan begrijp is dat dit vanuit b.v. VBA code of DOS mogelijk is door middels van \\?\ voor het lange pad ........
Eh t'ja aan dat soort hacks moet je nooit aan beginnen, krijg je crashende virus scanners door. Windows file search blijft steken, chkdsk gooit je bestanden uit die folders weg :X ....

Why the .... 8)7 zou je ook van die lange paden willen gebruiken?, je kan beter met info.txt bestanden werken of een database systeem opzetten als je informatie over files en folders wil bij houden

'if it looks like a duck, walks like a duck and quacks like a duck it's probably a duck'


Acties:
  • 0 Henk 'm!

  • MaikelG
  • Registratie: Januari 2001
  • Laatst online: 21-08-2024

MaikelG

^^

Wellicht dat je wat kunt proberen door het aanmaken van junctions/links
(doet denken aan SUBST (DOS tijdperk) maar dan voor directories op het NTFS systeem)

Hier staat wat uitleg op een ander forum:
http://www.neowin.net/forum/index.php?showtopic=600669

Hier een handig hulpprogramma van Sysinternals/Microsoft om junctions/links aan te maken:
http://technet.microsoft....ysinternals/bb896768.aspx

Hier staat een tooltje Link Shell Extension (freeware) beschreven dat precies zou moeten beantwoorden aan je vraag:
http://schinagl.priv.at/n...hellext.html#verylongpath

^^ 4 mega pixels - BF1 / Discord: bierrrrrtje

Pagina: 1