Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Question about working directory;

Hi,

If I use:

DIRECTORY:

in a script I can work with relative paths..

I can select a directory:

DIRECTORY C:\curso qlickview\ficheros;

But I would like to know how to change th default directory..., the directory that it's used when I use:

DIRECTORY;

Thanks in advance,

8 Replies
ajsjoshua
Specialist
Specialist

Hi Juan,

Do u want to change or rename the directory.

Anonymous
Not applicable
Author

I want to change

sujeetsingh
Master III
Master III

It will take the relative directory of the app file location by default

ajsjoshua
Specialist
Specialist

Hi ,

Try this in script

SET vPath = 😧\curso qlickview\ficheros;

when u r loading tables use this

From

[$(vPath)Product.qvd]

qvd;

kkkumar82
Specialist III
Specialist III

Hi these type of problems you will face when you are moving something from Dev to Prod or to Test

To solve the issues people generally maintain the paths in a file and load them in a variable and do accordingly.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I think you can't.

The default directory is always the directory of the current document (at least in QV Desktop) or the path that is set in the QMC (for server installations). Specifying a simple DIRECTORY; statement without any parameters will return you to the working directory.

Note that there have been some changes to how QlikView functions react to the path set in a DIRECTORY statement. It used to be just the LOAD statement that was affected, but nowadays (SR11+ and QV12), Qvd functions also make use of the path specified in the last DIRECTORY statement. If they use relative paths, that is.

Peter

Anonymous
Not applicable
Author

Hi,

You can change the directory to where you stored your application or qvd's by having something like:

LET vDir = 😧\curso qlickview\ficheros\;


Always remember the backslash at the end of the filepath.

engishfaque
Specialist III
Specialist III

Dear Juan,

Use listed below script for your versatile directory, and checked to check mark "Relative Paths" in edit script.

Directory .\..\..;

SET vDirectory = '..\..';

Kind regards,

Ishfaque Ahmed