Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
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
stabben23
Partner - Master
Partner - Master

Hi Helen,

if E is a network disc use the Whole searchway like \\fileshare\QV\Sales\Daily_Sales.txt

sasikanth
Master
Master

HI,

Try this


@ ECHO OFF

SET IP_Path=D:\QV

SET OP_Path=E:\QV\Sales


SET date=%date:~10,4%-%date:~7,2%-%date:~4,2%

SET hr=%time:~0,2%.%time:~3,2%.%time:~6%

copy /v "%IP_Path%\Customer.qvd"  "%OP_Path%\Customer_%date%_%hr%.qvd"


Hope it helps you..

marcus_sommer

Could it be that your statement is missing a specified filename like:

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

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

- Marcus

Not applicable
Author

Thanks Sasi

Its working..but i need to create the log as well,

how many files are copied, on date & time

Regards,

Helen

sasikanth
Master
Master

hi,

You can check windows log files for this , please refer the below link

Create list/TEXT file of copied files after copying Batch Command - Stack Overflow

Log For xcopy batch file

Thanks,

marcus_sommer

I wouldn't use xcopy if I had to manage larger amounts of copying/moving/deleting tasks or to ensure a stable logging of them. I would use vbs-macros or Robocopy - Wikipedia, the free encyclopedia.

- Marcus

Not applicable
Author

When i am using the above script am getting msg like this  ?

Does D:\QV specify a file name

or directory name on the target

(F = file, D = directory)?

how to resolve this ?

Regards,

Helen

jonathandienst
Partner - Champion III
Partner - Champion III

This is a Windows batch message, not a QV message. I believe the earlier postings explain why - XCopy expects a file name or file mask and sees the path you supply as ambiguous. If you check out the xcopy help, you should be able to suppress this message. But I agree with Marcus about using Robocopy or script instead of xcopy.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein