Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Relative path and absolute Path

Hi,

i am trying to understand the the difference between relative path and absolute path..

what does the .\ and ..\ represent iam trying to understand..

i assume that  . means current directory and .. means previous directory..

can someone elaborate or explain when to use this . and ..\

Thanks

6 Replies
Gysbert_Wassenaar

.\ is the relative path to the current directory

..\ is the relative path to the parent of the current directory (i.e. one directory up)

If you're using relative paths you can use ..\ to point to somewhere else:

..\..\dev\include\myscript.qvs

means two directories up, then to dev and then into include and finally the file myscript.qvs


talk is cheap, supply exceeds demand
Not applicable
Author

Can u please give me example where these are implemented.

regards

Mahesh Thalluri

MK_QSL
MVP
MVP

ThornOfCrowns
Specialist II
Specialist II

 

LET

vTable

= 'CUSTOMER';
$(vTable)

:
LOAD

*
FROM


[..\..\QVD_Standard\$(vOrg)_$(vTable).QVD]
(
qvd

);

LET

vTable

= 'ITEM';
$(vTable)

:
LOAD

*
FROM


[..\..\QVD_Standard\$(vOrg)_$(vTable).QVD]
(
qvd

);

The use of ..\..\ allows for the load to point at a file in a dfferent directory relative to the one the dashboard is in, without having to hard code the parth. This means I can move the structure fron DEV area to TEST server and not have to worry about changing a lot of file references, for example.

ThornOfCrowns
Specialist II
Specialist II

Well found!

Not applicable
Author

hi

Relative path indicates the directory of data source where qlikview application are saved.

Relative path means, you need to give the path based on the current path, for example if your Qlikview file and SalesData.txt file are in the same path(C:\Qlikview\Data\) then you can use

SalesData.txt no need of the remaining path.

or

.\SalesData.txt

Suppose if you want to access a file in Qlikview folder then you need to use ..\, mean that go back one folder level back.

..\FileinQlikviewFolder.txt;

Absolute path.

Absolute path is the actual path of the data file in your harddisk.

if you choose absolute path (uncheck the relative path) then you can observe the path of the file

it will come something like  E:\QlikView\RF\codiciw13.xlsx