I modified a code I found on the Internet to delete Temp files. For some reason it won't change the directory in which it searches to the one the user specifies in the GUI.
#include <GUIConstants.au3>
Opt("GUIOnEventMode", 1)
$mainwindow = GUICreate("BA-LETED", 300, 160)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUISetState()
$input = GUICtrlCreateInput("C:\", 10, 70, 180, 20)
$begin = GUICtrlCreateButton("BA-LETE", 80, 20, 120)
GUICtrlSetOnEvent($begin, "Begin")
Dim $FolderN