I have a batch file that's only 3 lines long.
What it does is simple:
type C:\data\file.bak >> echo "" >> file.log.bak cscript "C:\data\Move filesA.vbs" cscript "C:\data\Move filesB.vbs"
Basically all it does is take that file.bak and append it to the file.log.bak. They are just plain text files
The cscripts take the file.bak and moves it to a server location.
type C:\data\file.bak >> echo "" >> file.log.bak was just added a few hours ago. The script runs every 15 minutes
When ran from a user (Double clicking the .bat file), it runs fine and copies the file to the file.log.bak with no problems
When run from the task, it doesn't execute the
type C:\data\file.bak >> echo "" >> file.log.bak line, but executes the cscripts
My only guess would be that windows has a cached version of the batch file and it's not running the new batch file.
Is there any hint as to why it's not running the
type C:\data\file.bak >> echo "" >> file.log.bak line when running from a scheduled task?