Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Brett
  •  Brett
  • No customer Topic Starter
2011-12-20T00:01:01Z
Hi support

I have an execute command task in a job which calls a bacth file to rename some files

E:\XFER\iag_dsapp\DQ\DEV\inprocess\Rename_HUON_extracts.bat


Quote:

@ECHO OFF

cd E:\XFER\iag_dsapp\DQ\DEV\inbound\HUON


Rename ?JSDQT003.PB.UNLOAD.* JSDQT003.PB.UNLOAD 2> nul
Rename ?JSDQT001.PB.UNLOAD.* JSDQT001.PB.UNLOAD 2> nul
Rename ?JSDQT000.PB.UNLOAD.* JSDQT000.PB.UNLOAD 2> nul

set ERRORLEV=0






I supply credentials for drives etc

Running this command executes the command and renames the files but I get a pop up window from Visualcron with the message text

Msg box title is

Message from Server - Job Name

Specified directory was not found when trying to write output.
Please check output directory.


The batch job completes ok renaming the files but the message from Visualcron is puzzling

There is an output settings tab on server settings panel - but is completely blank with no screen elements to change or fill in ?

Thanks
Brett
Sponsor
Forum information
ErikC
2011-12-20T07:06:44Z
Hi Brett,

In your batchfile, you are using the '2> nul' behind every rename action.
This means you are redirecting the standard error to null.

Visualcron is handling the standard output and the standard error output.
So you van remove the '2> nul' behind every rename action.

If there are any problems they will be shown in the error output column in Visualcron.

Regards,
Erik
Uses Visualcron since 2006.
Brett
  •  Brett
  • No customer Topic Starter
2011-12-20T23:16:43Z
Hi Erik - I changed the file as you suggest and visualcron does pick up the stderr output and store it for display - but we still get the same message box appear with the same error / warning text for the execution of the task.


Quote:

@ECHO OFF

cd E:\XFER\iag_dsapp\DQ\DEV\inbound\HUON


Rename ?JSDQT003.PB.UNLOAD.* JSDQT003.PB.UNLOAD
Rename ?JSDQT001.PB.UNLOAD.* JSDQT001.PB.UNLOAD
Rename ?JSDQT000.PB.UNLOAD.* JSDQT000.PB.UNLOAD

set ERRORLEV=0




Thanks
Brett.
Support
2011-12-21T07:37:18Z
The error is related to the "File Notification". The write path is probably wrong or you don't use the proper Credentials. Make sure you use a UNC path if it is a network drive (\\servername\folder\file.txt) and not logical drives like Z:\
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top