Using Win32 functions in Visual FoxPro Image Gallery
Network Management
..msdn
NetApiBufferFree
NetApiBufferSize
NetConnectionEnum
NetFileClose
NetFileEnum
NetFileGetInfo
NetGetDCName
NetGroupEnum
NetLocalGroupEnum
NetMessageBufferSend
NetMessageNameAdd
NetMessageNameDel
NetMessageNameEnum
NetScheduleJobAdd
NetScheduleJobDel
NetScheduleJobEnum
NetServerEnum
NetServerGetInfo
NetSessionEnum
NetShareAdd
NetShareDel
NetShareEnum
NetShareSetInfo
NetUserAdd
NetUserChangePassword
NetUserDel
NetUserEnum
NetUserGetGroups
NetUserGetInfo
NetUserGetLocalGroups
NetUserSetInfo
NetWkstaGetInfo
NetWkstaTransportEnum
NetWkstaUserEnum
Code examples:
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
NetScheduleJobAdd
..msdn    Add comment     W32 Constants      Translate this page
Submits a job to run at a specified future time and date.
Code examples:
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Declaration:
NET_API_STATUS NetScheduleJobAdd(
    LPCWSTR Servername,
    LPBYTE Buffer,
    LPDWORD JobId
);
FoxPro declaration:
DECLARE SHORT NetScheduleJobAdd IN netapi32;
    STRING    Servername,;
    STRING  @ Buffer,;
    INTEGER @ JobId
Parameters:
Servername
[in] Pointer to a constant string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.

Buffer
[in] Pointer to an AT_INFO structure describing the job to submit.

JobId
[out] Pointer that receives a job identifier for the newly submitted job. This entry is valid only if the function returns successfully.
Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
This function requires that the schedule service be started at the computer to which the job is submitted.

Only members of the Administrators local group can successfully execute the NetScheduleJobAdd function on a remote server.
Word Index links for the NetScheduleJobAdd :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-07-27 06:59:28
Modified: 2005-07-27 07:02:02
Visited in last 7 days: 13
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.232.243)
13 sec.Function: 'RasGetCountryInfo'
25 sec.Function: 'SetupDiGetClassImageIndex'
38 sec.Function: 'AlphaBlend'
48 sec.Function: 'PathGetDriveNumber'
1.07 min.Function: 'JetCreateDatabase'
1.28 min.Function: 'GdipCreateBitmapFromHBITMAP'
1.48 min.Function: 'GetSaveFileName'
1.67 min.Function: 'TerminateProcess'
1.87 min.Function: 'WTSEnumerateServers'
2.07 min.Function: 'SetVolumeMountPoint'
Google
Advertise here!