Schön, ich würde dir aber noch eine GUI dazu empfehlen. Ich habe dir mal ein Grundgerüst gebaut, was du damit anfängst ist deine Sache...
[autoit]#include <ButtonConstants.au3>
#include <DateTimeConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Programm-Planer", 351, 336, 300, 206)
$MonthCal1 = GUICtrlCreateMonthCal(@YEAR & "/" & @MON & "/" & @MDAY, 24, 80, 191, 162)
$Input1 = GUICtrlCreateInput(@HOUR, 232, 80, 41, 21)
$Updown1 = GUICtrlCreateUpdown($Input1)
GUICtrlSetLimit(-1,23,0)
$Input2 = GUICtrlCreateInput(@MIN, 280, 80, 41, 21)
$Updown2 = GUICtrlCreateUpdown($Input2)
GUICtrlSetLimit(-1,59,0)
$Label1 = GUICtrlCreateLabel("Datum", 80, 40, 67, 25)
$Label2 = GUICtrlCreateLabel("Zeit", 240, 40, 38, 17)
$Label3 = GUICtrlCreateLabel(":", 272, 80, 8, 24)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Label4 = GUICtrlCreateLabel("Programm", 56, 264, 91, 17)
$Input3 = GUICtrlCreateInput("Programm auswählen", 56, 288, 121, 21)
$Button1 = GUICtrlCreateButton("Durchsuchen", 184, 288, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Task planen!", 232, 152, 75, 25, $WS_GROUP)
GUISetState()
While 1
$Msg = GUIGetMsg()
Switch $Msg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$programm = FileOpenDialog("Programm auswählen",@ScriptDir & "\","Ausfürbare Programme (*.exe)")
GUICtrlSetData($Input3,$programm)
Case $Button2
;...
EndSwitch
WEnd
Wenn du noch hilfe brauchst... Einfach fragen ![]()