Heres your problem:
#include <GuiConstants.au3>
GuiCreate("MyGUI", 392, 72,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
$file1 = GuiCtrlCreateInput("Conquer Online Folder", 10, 10, 370, 20)
$Button_1 = GuiCtrlCreateButton("Remove 3DEffects", 10, 40, 100, 20)
$file2 = GUICtrlRead($file1) ;THIS SHOULD BE IN CASE $msg = $Button_1 SO THAT IT CHECKS AFTER YOU HAVE INPUTED SOMETHING
GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button_1
FileMove($file2 & "3DEffect.ini",$file2 & "_3DEffect.ini", 9)
MsgBox(0,"","Effects Removed")
Case Else
;;;
EndSelect
WEnd
Exit ;YOU DONT NEED THIS
Make it look like this:
#include <GuiConstants.au3>
GuiCreate("MyGUI", 392, 72,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
$file1 = GuiCtrlCreateInput("Conquer Online Folder", 10, 10, 370, 20)
$Button_1 = GuiCtrlCreateButton("Remove 3DEffects", 10, 40, 100, 20)
GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button_1
$file2 = GUICtrlRead($file1)
Filemove($file2 & "3DEffect.ini",$file2 & "_3DEffect.ini", 9)
MsgBox(0,"","Effects Removed")
Case Else
;;;
EndSelect
WEnd