>Hi all,
>
>My application has to do certain tasks overnight. The code was allright, but VFP failed to execute the program at certain hour in the night just because the computer felt in standby mode and VFP did not wake it up to perform the tasks.
>
>How can I force the computer to wake up within VFP to execute the code afterwards?
>
You can't; you need something external to your system to trigger the wakeup action, since entering the suspend state stops all program execution. If you're on a network, you might investigate Wake-On-LAN if your operating system, motherboard and NIC fully support ACPI and APM, otherwise, disable the standby mode within both the BIOS and in Control Panel.
I'd strongly advise disabling suspend and virtually all standby options other than video-related options; if your CPU clock rate is dropped or the hard disk is spun down, all sorts of strange things can (and probably will) happen. The APM suspend/standby modes are really designed to deal with power management requirements for a laptop, where inactivity after a period of time is an indication to the system that it wants to save the current system state and minimize power consumption to maximize battery life.