Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
The batch file execution throwing this message. when QMC, .bat file are on same machine..no issues..
when i moved this .bat to other machine. ..its throwing this error. the path is perfect with "\\servername\folder\ab.bat"
The problem is not that the batch file isn't executed. The problem is that it fails to execute correctly. Check that all the commands in the batch file can be executed from the new location.
I think everything is good Gysbert..anyways i will put here in detail.
This is the code to delete log files of last 7 days..
REM del_old.bat
REM usage: Delete *.txt log files older than 7 days
REM forfiles /p F:\MSSQL\Data /s /m *.* /d -30 /c "cmd /c echo @path >> c:\itops\deloldfilesaudittrace.log & cmd /c del /q @path"
forfiles /p "D:\SP" /s /m *.* /d -7 /c "cmd /c echo @path >> "D:\SP\del_old.log" & cmd /c del /q @path" --- on machine 1
Here the problem is i moved this file to another machine and changed the log path to the .bat file path accordingly...
REM del_old.bat
REM usage: Delete *.txt log files older than 7 days
REM forfiles /p F:\MSSQL\Data /s /m *.* /d -30 /c "cmd /c echo @path >> c:\itops\deloldfilesaudittrace.log & cmd /c del /q @path"
forfiles /p "Q:\SP" /s /m *.* /d -7 /c "cmd /c echo @path >> "Q:\SP\del_old.log" & cmd /c del /q @path" --- on machine 2
And i changed the path in command line to sumthing like this... "\\srvrname\SP\del_old.log" ...is there sumthing else do i need to mention
john
Did you ever resolve this issue?
I'm experiencing something similar. The batch file is reloading a document using the following command... "c:\Program Files\QlikView\qv.exe" /r "document name.qvw"
The document doesn't create a log file when the error occurs, and the only error I get is an exit code of 255.
This process is failing sporadically, and there doesn't appear to be any trends.
We're using the qv.exe, because the document has an OnPostReload trigger.
Any thoughts would be appreciated,
B