Scheduled task exit 0x1

Mar 7, 2012 at 6:20 PM

Hi have batch job looking like this:

@echo off

SET S3_Bucket=mybucket
SET S3_Key=mykey
SET S3_Secret=mysecret

S3 put %S3_Bucket%/backup/ c:\scripts\backup\backup_%date:~0, /key:%S3_Key% /Secret:%S3_Secret% /nogui /sync

when i run this manually, the sync happens nicely. But when scheduled on a W2k8 R2 x64 server, it stops with error code 0x1 without having synced anything...

Mar 7, 2012 at 7:34 PM

found it...

scheduled tasks does not start in the folder of the scripts, so S3.exe was not a known command...