Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Task Scheduler
Message
From
14/12/2004 11:07:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/12/2004 10:50:48
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00969109
Message ID:
00969118
Views:
15
>Is there a way to run the task scheduler from VFP code. I already have the Task Scheduler firing every 30 minutes. I need to be able to run it on the fly if necessary.
declare long ShellExecute in "shell32.dll" ;
	long hwnd, string lpszOp, ;
	string lpszFile, string lpszParams, ;
    string lpszDir, long nShowCmd

ShellExecute(0,'Open','explorer.exe',;
  '::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\'+;
  '::{21EC2020-3AEA-1069-A2DD-08002B30309D}\'+;
  '::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}','',1)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform