Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scheduling a VFP EXE in Windows Server?
Message
From
23/08/2019 04:15:13
 
General information
Forum:
Windows
Category:
Computing in general
Miscellaneous
Thread ID:
01670262
Message ID:
01670273
Views:
46
>Hi,
>
>A customer asked me if it is possible to run a certain procedure - actually procedure with printing many pages - unattended, automatically once a week. The only way I can think of doing it is creating a VFP application (EXE) and scheduling to run it automatically on a predetermined time. But I have never scheduled a program to run from Windows schedule. Sp. this would have to be scheduled in the Windows Server.
>Are there gotchas to watch for when doing this?

When you define a task in Task Scheduler, you can attach a user name/password and have it run under that account. You need to make sure that account has enough privileges so your EXE can do what it needs to do.

Mapped drive letters may not exist for that chosen account, so it's usually more reliable to use UNCs to refer to network storage. You may also need to check defined printers.

If it's unattended you can't rely on anyone reading error messages on the screen if your app is paused, so you need to structure the app so it writes everything to log files which can be reviewed later. By default scheduled tasks are forcibly terminated if they take more than a certain amount of time to run, so you should never pause scheduled apps no matter what errors they may encounter.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform