QUOTE(tssguy123 @ 18 Jul, 2008 - 09:16 AM)

I am looking to create a simple .exe that deletes a folder (C:/Program Files/World Of Warcraft/Cache), and then Opens the .exe C:/Program Files/World Of Warcraft/WoW.exe

Oh...
My problem is I do not know the code for either buttons.
I tried OPEN 'WoW.exe for input'
By the way, I just started VB6 yesterday by making my own browser.
Yesssss!
I got the .exe to run with
CODE
Private Sub cmdExec_Click() ' cmdExec is the name of the command button on any form.
Dim RetVal
RetVal = Shell("C:\Program Files\World Of Warcraft\WoW.exe", 1) ' Run WoW.
End Sub
it is quite easy
here
create a button and change its name to "delete" without quotes and the put the following code in your code module:
[code]
Private Sub delete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles delete.Click
My.Computer.FileSystem.DeleteDirectory("address of the folder you want to delete", FileIO.DeleteDirectoryOption.DeleteAllContents, FileIO.RecycleOption.SendToRecycleBin, FileIO.UICancelOption.DoNothing)
End Sub
now run the code and if it does what you want it to do then click on the Build menu on top, and then select Publish [Your application name] and now follow the wizard.
Hope it helped