Echt erstaunlich was die KI auf die Reihe bringt!

Und ja ich hab ihr später noch erzählt, dass sie die Argumente für den MessagRequester vertauscht hat

Edit: Link zur KI
und das war die Ausgabe:Can you give me the code in purebasic to write a gui for the mklink command?
Code: Alles auswählen
; Create a new window with the title "Create Symlink"
OpenWindow(0, 0, 0, 300, 100, "Create Symlink")
; Create a text field for the user to enter the link name
TextFieldGadget(1, 10, 10, 280, 20, "")
; Create a text field for the user to enter the target path
TextFieldGadget(2, 10, 40, 280, 20, "")
; Create a button to create the symlink
ButtonGadget(3, 10, 70, 100, 20, "Create")
; Main event loop
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Gadget
; If the "Create" button was clicked
If EventGadget() = 3
; Get the link name and target path from the text fields
linkName$ = GetGadgetText(1)
targetPath$ = GetGadgetText(2)
; Use the mklink command to create the symlink
RunProgram("cmd.exe", "/C mklink " + linkName$ + " " + targetPath$, #PB_Program_Wait)
EndIf
EndIf
Until Event = #PB_Event_CloseWindow
; Close the window
CloseWindow(0)
Code: Alles auswählen
RunProgram("cmd.exe", "/C mklink " + linkName$ + targetPath$, "", #PB_Program_Wait)