Jump to content











Photo
- - - - -

If more than 259 characters ?


  • Please log in to reply
3 replies to this topic

#1 Max_Real Qnx

Max_Real Qnx

    Gold Member

  • Patrician
  • 1382 posts
  • Location:Istanbul
  • Interests:To be or not to be that is the question.
  •  
    Turkey

Posted 01 July 2012 - 07:57 PM

Hi WinBuilder Developers ;)

If the target name lenght is more than 259 characters, the WinBuilder will not able to access a file/directory with such a long name ?


//Retrieve,FILEVERSION,"%Source_Win%\explorer.exe",%VarResult%

//Message,"%VarResult% = Windows 8 Consumer Preview",INFORMATION

//Message,%Source_Win%,INFORMATION

//Retrieve,FOLDERSIZE,"%Source_Win%\Microsoft.NET","%sizeFolder%"



Retrieve,FOLDERSIZE,"c:\test","%sizeFolder%"

StrFormat,BYTES,"%sizeFolder%"




Please extract the test.7z archive file to the root directory of the system drive and test this code with the WinBulder 083. I am having this problem with the Windows 8 dvd's source. Kind regards :hi:
Attached File  test.7z   20.37KB   5 downloads


Attached File  01-07-2012 22-52-33.png   90.09KB   3 downloads

#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 03 July 2012 - 10:03 AM

IMO that is not an issue of WinBuilder, it is an issue of win32.
See here.

The actual WinBuilder is based on win32 and has the MAX_PATH limit of 260 characters.

Peter

#3 paraglider

paraglider

    Gold Member

  • .script developer
  • 1739 posts
  • Location:NC,USA
  •  
    United States

Posted 05 July 2012 - 03:20 AM

Not true. In win32 you can use longer than 260 if you use a special prefix to the file name ( ? ) and you use the unicode versions of the win32 api functions.

See:

http://msdn.microsof...7(v=vs.85).aspx

for more details

However given the lack of unicode support in your very old pascal compiler could be difficult to use these functions.

#4 Max_Real Qnx

Max_Real Qnx

    Gold Member

  • Patrician
  • 1382 posts
  • Location:Istanbul
  • Interests:To be or not to be that is the question.
  •  
    Turkey

Posted 06 July 2012 - 09:55 AM

Hi guys ;)

We can overcome this problem with AutoIt. I developed a temporary solution for this. Best regards :hi:


//GetSize,"/File","c:\test.exe"

GetSize,"/Folder","c:\test"

Message,"%GetSize%",INFORMATION

Message,"%Size%",INFORMATION



Attached File  PROJECTS.7z   2.72MB   0 downloads




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users