UNIX path separators (single slash characters '/') work on all platforms in PixInsight, including Windows, and should always be used. They have an important advantage over native Windows backslash separators: you don't have to escape a single backslash.
For example, the following path specifications are equivalent on Windows:
"C:/foo/bar"
"C:\\foo\\bar"
Note that since the backslash character is the standard escape character in C, C++ and JavaScript, you have to write two backslashes in order to specify a single backslash in a string literal. The following is incorrect as a path specification:
"C:\foo\bar"
because the 'f' and 'b' characters are being escaped. In this particular example, \f is being replaced with a form feed control character (ASCII code 12) and \b is replaced with a backspace control character (ASCII code 8).
C:/folder1/folder2
things don’t work
This should not happen. In PixInsight, "C:/folder1/folder2" is a valid path specification on Windows, as far as "C:", "folder1" and "folder2" exist in the order specified and are accessible to the current user.