Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Not applicable

Batch error ?

HI All,

I am getting this message in Batch log file..

Does E:\Qlikview\Sales specify a file name

or directory name on the target

(F = file, D = directory)?

Files are not copying..

Kindly help me on this..

Regards,

Helen

17 Replies

Re: Batch error ?

Would you provide more information

Hope this helps

Batch file script to reload Qlikview Applications

Not applicable

Re: Batch error ?

Batch Script:

echo "--------------------" >> "D:\QV\Daily_Sales.txt"

Xcopy "D:\QV\Customer.qvd" "E:\QV\Sales" /s /i /y

Xcopy "D:\QV\Hier.qvd" "E:\QV\Sales" /s /i /y


nnn files added

nnn files replaced

no file added

no file replaced

this is my script.

Getting this message in Log file.

Does E:\Qlikview\Sales specify a file name

or directory name on the target

(F = file, D = directory)?

Regards,

Helen

trdandamudi
Honored Contributor

Re: Batch error ?

It looks like the destination folder "Sales" does not exist in 'E:\QV\' path. Can you confirm that ?

Also when you get that error your can just press 'D', so that it will automatically creates that folder for you. Hope this helps...

trdandamudi
Honored Contributor

Re: Batch error ?

The script you posted is the complete script ? because the line


"Does E:\Qlikview\Sales specify a file name " that you posted is not part of the script that I am seeing. This line is pointing to the 'Sales' folder under 'Qlikview' folder. So in this case either you do not have the folder 'Sales' or you do not have the folder 'Qlikview' and 'Sales'.

Re: Batch error ?

Have you follow which i've sent it to you.

Highlighted
Not applicable

Re: Batch error ?

Batch Script:

echo "--------------------" >> "E:\QV\Sales\Daily_Sales.txt"

Xcopy "D:\QV\Customer.qvd" "E:\QV\Sales" /s /i /y

Xcopy "D:\QV\Hier.qvd" "E:\QV\Sales" /s /i /y


nnn files added

nnn files replaced

no file added

no file replaced

this is my script.

Getting this message in Log file.

Does E:\QV\Sales specify a file name

or directory name on the target

(F = file, D = directory)?

Regards,

Helen

trdandamudi
Honored Contributor

Re: Batch error ?

Ok. Do you have a valid 'E:\QV\Sales' folder? I think that it what you are missing...

Note: How are you executing this script on DOS prompt or within Qlikview ?

Re: Batch error ?

What is this Mean?

echo "--------------------" >> "E:\QV\Sales\Daily_Sales.txt"

SET vPath = 'E:\QV\Sales\Daily_Sales.txt'

TRACE "-----------"

TRACE >>

Trace $(vPath)

Not applicable

Re: Batch error ?

here my concern is to just copy qvds from one place to other..

Can you provide the script once you test in your system.

Because i am unable to copy the files..

Regards,

Helen