- Open the Finder
- Go to your Macintosh HD folder (access this from Devices in the left column)
- Hold down Cmd + Shift + . (dot)
- All the hidden files will become visible
Go to the drive that has turned your folder into an exe
Make a new folder called XYZ2, drag all the files from the hidden folder into the new folder. Delete the now empty folder and the .exe folder and your drive will be as good as new.
- Hold down Cmd + Shift + . (dot) a second time to hide the files again