Discussion Locked

Task Scheduler

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an executable that ftp's a file from another machine, then updates tables within a database. I can run it fine from the command prompt. It requires no responses.

However, when I run it through the task scheduler, the window opens as it begins to run, but won't actually continue until I click anywhere within the window.

This executable worked fine on a Winnt server, but is giving me fits on this Windows 2000 server.

How can I make it run unattended from the task scheduler?

11 replies

by sgt_shultz

ooohh. my favorite weird kinda problem. cool that you figured out it runs when window gets focus back...dunno. but i found this:
WM_TIMER Messages May Stop Being Delivered to Programs in Windows 2000
This article applies to?
This article was previously published under Q322913
SYMPTOMS
WM_TIMER timer messages may stop being delivered to programs. This may cause portions of programs to stop working. For example, if a program updates a window when it receives a WM_TIMER message, this window updating stops.
there is hot fix (gulp) for this.

i will keep looking. meanwhile,
you are up on service packs, yes? long shot, can you run pif of batch file 'in compatibility mode?' you are running with admin rights yes?

by sgt_shultz

here is another hot prospect:
Comments?
Provide us with feedback on this article

Support Centers
Small Business Server
Windows 2000
Windows 2000 - Developer

Other Support Options
Contact Microsoft
Phone Numbers, Support Options and Pricing, Online Help, and more.

Customer Service
For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.

Newsgroups
Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.

Page Options
Send
Print

FTP Transfers by Using Network Address Translation May Not Work
This article applies to?
This article was previously published under Q329895
SYMPTOMS
If you use Network Address Translation ( NAT) between an FTP server and a client, retransmitted FTP-Port commands may intermittently cause the FTP connection to stop working.
RESOLUTION
Service Pack Information
To resolve this problem, obtain the latest service pack for Microsoft Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack

Hotfix Information
---
i am running windows 2000 sp4 without any problems on my client machines here. can you ghost your win2k server first before you apply sp4 to try to resolve this?

by sgt_shultz

oops, sorry about garbage at beginning of previous comment.
anything in event viewer when this happens?

by sgt_shultz

also, have you tried waiting this out to see if it will is really hung or just waiting/busy?

by doesnotknowitall

(1)Running SP4, Build 2195
(2)Have job scheduled as Administrator, same logon as command line
(3)Have waited several minutes, but it starts right up when I click on the window.

by jackofalltech

If this is a DOS executable, check the properties. One of the items is something like 'Always suspend when background', that may explain why it runs when you click on the window to give it the focus.

Ralph

This discussion is closed to new replies.