Announcement

Collapse
No announcement yet.

A runtime error related to incorrect path

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A runtime error related to incorrect path

    Hi,
    I am having a runtime error as follows:
    "C:\Users\%username%\Documents\Output Folder contains an incorrect path".

    I use a LUA file for reading and writing the folder path.
    I replace \ for \\ when writing the path.
    The system language is Portuguese.
    All works fine on a machine with English/Russian system language.

    I think there is some kind of Character Encoding problem. Am I right?
    Or anything else?

    Will I experience this problem when just using the Windows Registry for this purpose?

    P.S. Windows 10 update 1903
    Last edited by kachok; 10-22-2019, 12:46 PM.

  • #2
    Can you show the actual code for writing and reading the path, as well as a sample output (text file)?

    Ulrich

    Comment


    • #3
      I've already fixed it, thanks.
      I decided to use the Windows Registry instead of that.
      It works perfectly now

      Comment


      • #4
        UPDATE

        The same error with the Croatian as the system language.
        I haven't tested it properly I guess :(
        I save and read the path using the Windows Registry.
        The default path is "C:\Users\%username%\Documents\Output Folder". I use this path for saving of created image files.
        What could be the problem?
        Please help!!!
        Last edited by kachok; 11-01-2019, 12:55 PM.

        Comment


        • #5
          "C:\Users\%username%\Documents\Output Folder"

          Try it

          Comment

          Working...
          X