Forum Discussion

DevaV's avatar
DevaV
Contributor
14 years ago

Maximum string length in SaveToFile

Hi,



We would like to know maximum characters allowed in FileName of Picture.SaveToFile. When we tried with



‘associations_to_peripheral_sources_keys_sources_Metadata_classify_possessions’the picture is not saved but the same with less characters are saved.


3 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    The length of file name is probably more related to the OS environment you're running under than TestComplete.  I know that, even with long file names, Windows has a maximum limit that includes the entire path, not just the name of the file..  What it is off the top of my head I cannot say.
  • Hi Deva,


    Robert is right - this is a Windows limitation. The maximum allowed length of a full file name (including the path) is 255 characters. If you want to create files with long names, you can try moving your TestComplete project folder to a higher level of the project hierarchy.

  • Thanks Irene,



    The problem is with path of the saving file which was more than 255 characters. Now it works fine :)