# Working directory

If you are referencing a file in a script statement and the path is omitted, Qlik Sense searches for the file in the following order:

1. The directory specified by a Directory statement (only supported in legacy scripting mode).

   [Directory](https://help.qlik.com/en-US/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Directory.htm)

2. If there is no Directory statement, Qlik Sense searches in the working directory.

[File system access restriction](https://help.qlik.com/en-US/sense/November2024/Subsystems/Hub/Content/Sense_Hub/LoadData/file-system-access-restriction.htm)

## Qlik Sense Desktop working directory

In Qlik Sense Desktop, the working directory is C:\Users\{user}\Documents\Qlik\Sense\Apps.

## Qlik Sense working directory

In a Qlik Sense server installation, the working directory is specified in Qlik Sense Repository Service, by default it is C:\ProgramData\Qlik\Sense\Apps. See the Qlik Management Console help for more information.