AutoHotkey Community

It is currently May 27th, 2012, 7:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: June 29th, 2006, 8:16 pm 
Offline

Joined: March 2nd, 2005, 10:59 am
Posts: 59
Hello
I try to copy files to an other path as a backup
The resulting path is longer than 260 characters. So filecopy failes.
Is there any workaround to copy the files?
Thanks for the help
MIchael


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 29th, 2006, 9:53 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Try the native copy command?
Or perhaps xxcopy.
Shouldn't the path be in Unicode to go beyond the 255 char limits (up to 32,000 chars, IIRC)?

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 30th, 2006, 10:14 am 
Offline

Joined: March 2nd, 2005, 10:59 am
Posts: 59
Hello PhilHo

xxcopy cant read from shadow devices
robocopy cant read from shadow devices but can write very long paths
copy like filecopy (autohotkey) can read from shadow devices, but cant write very long paths
so each of them has one fault.
:(
As far as I see the paths do not need to be in unicode
I renamed a directory to contain more than 260 charakters and its OK

But in an other page I found:
"When using very long path names, prefix the path with the characters \\?\ and use the Unicode versions of the C Runtime functions."
What does unicode mean for the paths?

MIchael


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 1st, 2006, 8:59 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
What do you call "shadow devices"?
You wrote: "I renamed a directory to contain more than 260 charakters and its OK" and "What does unicode mean for the paths?"
Internally, Windows maintains Unicode versions of the files and folders (using several Dos dir slots), along with the short name. IIRC, it does that even in Win9x.
If your names use only low Ascii (codes between 32 and 126), or probably even Ansi (codes above 127, in the default code page), Unicode paths probably means only that they are stored by alternating the Ansi codes and zeroes. There are WinAPI functions to do the conversion between multibyte chars and Unicode (WideCharToMultiByte and reverse).
Perhaps you should look the SHxxx functions (shell functions).

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 3rd, 2006, 10:39 am 
Offline

Joined: March 2nd, 2005, 10:59 am
Posts: 59
Hello PhiLho
Thnaks for the xplanation about unicode paths.
Shadow devices are a windows internal "devices" to access open files or keep snapshots. they can be accessed by the following synthax
\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1
YOu can create these snapshots on XP and on 2003
but its more easly implemented in Server 2003, because there these devices can be mounted as volumes. IN XP they are only temporarily created
INfo:
http://technet2.microsoft.com/WindowsSe ... x?mfr=true
http://en.wikipedia.org/wiki/Volume_Shadow_Copy_Service
Its very useful but on XP not easy to use
ciao
MIchael


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: sjc1000, SKAN, thor, tomL and 68 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group