I have a scheduled task on a Windows 2008 R2 server. The task includes an entry in the Start In directory. Run the task, and the batch file that it runs does what it should do. When I run the batch file from the command line, I see no errors. The problem is that the "Last Execution Result" is 0x1 (incorrect function call).
I got this at one time with the wrong DOS IF EXISTS file.txt DO (Copy file.txt file1.txt) , which was fixed by resetting the DO instruction. The current batch file does not show me any errors or warnings.
Why am I getting 0x1 result?
The batch file is running:
PUSHD \\JUKEBOX4\Archives\CallRecording REM only move csv and wma together. wma should be created last. IF NOT EXIST C:\CallRecording (MKDIR C:\CallRecording) FOR /f %%f IN ('DIR /b *.wma') DO ( IF EXIST %%~nf.csv (MOVE /Y %%~nf.* C:\CallRecording\) ) POPD CD /D "C:\Program Files (x86)\Olim, LLC\Collybus DR Upload" CollybusUpload.exe POPD
Information about the scheduled task:
- Program to run:
C:\Program Files (x86)\Olim, LLC\Collybus DR Upload\CallRecordingUploadFromH.cmd - Start:
C:\Program Files (x86)\Olim, LLC\Collybus DR Upload - Run whether the user has been enabled or not, the highest privileges.
History screen, set recording completed
"Task Scheduler task completed successfully" \ Record portal entry from NH ", instance" {1449ad42-2210-427a-bd69-2c15e35340e6} ", action" C: \ Windows \ SYSTEM32 \ cmd.exe "with return code 1."
On the first screen of the task scheduler, the "Execution result" "Success" is displayed
scheduled-tasks
user241099
source share