Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

very long path/filenames

 [1/2] from: D::Weyand::gmx::de at: 5-Dec-2005 14:08


Hi list, does anybody know how to create files with very long pathes? As I have to handle deep directory structures with pathes longer than 255 characters, my script failed to work on Windows as REBOL always uses the absolute path to open such targets. I want to migrate my scripts/data from AmigaOS with SmartFileSystem to WindowsXP. See script example below: long-filename: %.txt insert/dup long-filename "0" 200 close open long-filename long-path: %/ insert/dup long-path "0" 200 make-dir/deep long-path close open join long-path long-filename ** Access Error: Cannot open ....<SNIP> Any ideas for a workaround? Do you know a filesystem for Windows which can handle long pathes/filenames? Thanks for your help and advise. Regards, Dirk -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

 [2/2] from: SunandaDH::aol::com at: 5-Dec-2005 9:32


Dirk:
> does anybody know how to create files with very long pathes?
As far as I know, the maximum path length is hard coded into Windows, so the problem occurs with all Windows applications, not just REBOL. I'm just guessing here, but you might be able to use the old DOS command SUBST to take that up to 512. But beyond that, I think you need shorter folder names or a different platform. Sunanda.