Skip to content

Commit

Permalink
[web] How to enable long path support on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Jan 16, 2024
1 parent f54d859 commit fa68763
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 45 deletions.
13 changes: 13 additions & 0 deletions web/content/docs/userguide/troubleshooting/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ author = "Lars Bilke and Feliks Kiszkurno"
weight = 1
+++

## Windows only: `ogs`` or any of its tools cannot open an existing file with a long path

Windows has a [default path length limit of 260 characters](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation). Especially in workflows this limit can be exceeded easily. To enable long paths on Windows you need to alter the Windows registry which requires administrative user privileges:

- Open a PowerShell command prompt as an Administrator
- Run the following script:

```powershell
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
```

- You may have to restart the computer

## `XSDError: Loaded schema file is invalid` error encountered when running DataExplorer

You may encounter the following error (or similar) on opening `.gml`, `.cnd`, `std` or `.prj` files in the Data Explorer or file
Expand Down
45 changes: 0 additions & 45 deletions web/content/docs/userguide/troubleshooting/general/index.md

This file was deleted.

0 comments on commit fa68763

Please sign in to comment.