NetScheduleJobAdd
-
Was ist die NetScheduleJobAdd ??
Und wie wird sie benutzt??
Für was ist sie gut?
-
Das Stichwort lautet hier: Microsoft Developer Network kurz msdn.
Zu deiner Funktion findest du hier was: NetScheduleJobAdd
Was ist die NetScheduleJobAdd ??
The NetScheduleJobAdd function submits a job to run at a specified future time and date. This function requires that the schedule service be started at the computer to which the job is submitted.
Und wie wird sie benutzt??
Die Deklaration der Funktion:
NET_API_STATUS NetScheduleJobAdd( LPCWSTR Servername, LPBYTE Buffer, LPDWORD JobId );Für was ist sie gut?
Steht schon oben.
MFG
Ace
-
crossposting ... im anderen Forum hab ich dir nen Eintrag von den MVPs gegeben.
-
Kann man als ServerName auch ne IP-Eingeben???
-
Was muss man als JobID eingeben?
-
TokioD schrieb:
Was muss man als JobID eingeben?
Hast Du Dir schon mal die Doku angeschaut!?
Die "JobId" bekommst Du zurück...
SomitDWORD jobId; NetScheduleJobAdd(..., &jobId);
-
Ich will mit dieser Funktion ein Programm auf einem anderem Pc starten,wie mache ich dies?
-
Ich will ein Programm auf einem anderem Pc starten habe es so versucht:
NetScheduleJobAdd ("192.168.180.23",0,0);
Aba wo muss ich den Pfad und des Programm angeben?
-
Buffer
[in] Pointer to an AT_INFO structure describing the job to submit. For more information about scheduling jobs using different job properties, see the following Remarks section and Network Management Function Buffers.typedef struct _AT_INFO {
DWORD_PTR JobTime;
DWORD DaysOfMonth;
UCHAR DaysOfWeek;
UCHAR Flags;
LPWSTR Command;
} AT_INFO,
*PAT_INFO,
*LPAT_INFO;Command
Pointer to a Unicode string that contains the name of the command, batch program, or binary file to execute.EDIT: kannst du kein Englisch oder bist du zu faul zum lesen?^^