Det her er ikke løsningen 100%, er ikke sikkert på den lukker 100% correct, men der skal bare den rigtige kombination til :-) Du laver en win32 application i visual c++ og overskriver alt med det her:
(programmet kører \"usynlig\" i baggrunden)
// Timer.cpp : Defines the entry point for the application. //
Har lige et forslag. Hvis du ikke har brug for koden og kører win2k/xp kan du bruge AT kommandoen. den udfører en task ved et bestemt tidspunkt du angiver. Så sætter du apache kommandoen til 00.00 og luk ned komandoen til 00.05 :-)
AT [\\\\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\\\\computername] time [/INTERACTIVE] [ /EVERY:date[,...] | /NEXT:date[,...]] \"command\"
\\\\computername Specifies a remote computer. Commands are scheduled on the local computer if this parameter is omitted. id Is an identification number assigned to a scheduled command. /delete Cancels a scheduled command. If id is omitted, all the scheduled commands on the computer are canceled. /yes Used with cancel all jobs command when no further confirmation is desired. time Specifies the time when command is to run. /interactive Allows the job to interact with the desktop of the user who is logged on at the time the job runs. /every:date[,...] Runs the command on each specified day(s) of the week or month. If date is omitted, the current day of the month is assumed. /next:date[,...] Runs the specified command on the next occurrence of the day (for example, next Thursday). If date is omitted, the current day of the month is assumed. \"command\" Is the Windows NT command, or batch program to be run.
Chries jeg har lige sedet og leget lidt med det! men kan ikke finde ud af det! men gider du ikke lave exe filen og senden den til doomstone@doomstone.dk så er du en gutter mand :0)
Mit program er ikke istand til at anrette skade :-) Den forsøger at køre de to exe filer Apache.exe/Shutdown.exe. Finder den ikke filerne sker der ikke noget, finder den den, sker det de er lavet til :-)
shutdown.exe følger med min XP, for win2k ligger den vist i administrator pakken man kan hente hos ms (følger med server edition? )
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.