Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
tamilarasu
Champion

Relative Path

hello-2.gif ,

I am using a below syntax in load script. I need to change the path whenever I moved the qvw file from one path to another one. I have tried to make this as relative path but not able to get the correct solution. confused-face-smiley-emoticon.gif

Call ScanFolder('C:\Users\Tamilarasu.Nagaraj\Desktop\CP\Files received') ;

Can anyone suggest me an idea to make this easier.?

Thanks.

1 Solution

Accepted Solutions
anbu1984
Master III

If QVW and "Files received" are in the same folder, then use this

Call ScanFolder('Files received') ;

View solution in original post

4 Replies
Not applicable

Hi Nagaraj,

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

sushil353
Master II

Hi,

If you have to change your file path and don't want to change the data file path then you should use Absolute path..

In case of Relative path you have to change the path of your data/qvw file whenever you change the qvw file path/folder..

In your case it seems you have used Absolute path it seems... which is the rt way in your situation ..

Please elaborate your issue if you are facing any specific error..

HTH

Sushil

tamilarasu
Champion
Author

Hi,

Sorry for not explaining the problem clearly. I kept the data files and QVW file in same folder. I have to move the folder (Both data and QVW file) but don't want to change the path often. So I am expecting relative path solution.

!Capture.PNG !

Form the above screenshot, If I move the Overview QV folder to some other location, the path should also changed automatically (Relative path). I am not sure how to do as I am new to Qlikview.

anbu1984
Master III

If QVW and "Files received" are in the same folder, then use this

Call ScanFolder('Files received') ;