Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5997185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:13:37+00:00 2026-05-23T00:13:37+00:00

trying to run a simple batch file in windows 2008 task scheduler call cleanup.bat

  • 0

trying to run a simple batch file in windows 2008 task scheduler

call cleanup.bat > cleanup.log;
call ant -f ongoing_changes.xml > automation.log

The action is triggered properly and from the History logs (7 information messages) this seems to be puzzling

Task Scheduler successfully completed task “\Run regression” , instance “{edbd26d2-b71b-43d6-960f-29c31e39493c}” , action “C:\Windows\SYSTEM32\cmd.exe” with return code 1.

Unfortunately nothings gets executed (as no logs are created), even if I trigger manually the task, of course the batch file runs fine if executed from OS. If I don’t use “call” in the batch file, then “return code 0” is presented, still nothing gets executed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:13:37+00:00Added an answer on May 23, 2026 at 12:13 am

    First I had to convert the task scheduled to be “Windows server 2003, Windows Xp or Windows 200” then I managed to debug this putting a

    "call timeout 5"
    

    at the end of the script and figured out that ant environment wasn’t properly loaded, thus commands were failing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run a c++ 2d array (pretty simple file) and it works
I'm trying to run a batch file, as another user, from my web app.
I'm experimenting with a Windows batch file to perform a simple operation which requires
I am trying to modify a batch script that installs a simple script file
I am trying to create a simple batch file that will replace a line
I'm trying to run a simple Get-WmiObject call in PowerShell. Get-WmiObject -computerName $srv -namespace
I am trying to run a simple program using a spring configuration file. In
I am trying to run a simple post call which checks for updates and,
I am trying to run the VS 2008 SP1 installer , but it says
Looking at creating a simple batch file for my app. My app needs some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.