AutoHotkey Community

It is currently May 27th, 2012, 10:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: File Deletion Tool
PostPosted: November 9th, 2007, 11:20 pm 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
Delete Helper
Delete Helper aids you in deleting files.
it can also show you file that have been deleted with the tool

Features
File Select Dialog To Delete File
Search Click A Button press F12 and just type in the file you wish to
delete(there is no input box just type!)

Upcoming Features
A help file (there are instructions on how to use the program in the GUI)


Save As DeleteHelper.ahk

Code:
#SingleInstance Force
SetBatchLines, 10ms
Gui, Add, Text, x16 y20 w110 h60 , Delete Helper is a tool to help you delete files in many various ways.
Gui, Add, GroupBox, x6 y0 w140 h70 , Intro
Gui, Add, Button, x16 y100 w100 h30 gDialogDel, Delete A File
Gui, Add, Text, x16 y140 w120 h40 vText,
Gui, Add, Button, x16 y220 w100 h30 gSearchDel, Search for file
Gui, Add, Text, x16 y260 w140 h80 vText2,
Gui, Add, CheckBox, x186 y10 w100 h30 vChange gHelpText, Show Help Text
Gui, Add, Text, x186 y50 w100 h30 , ^Recomended
Gui, Add, Button, x176 y100 w100 h30 gShowDeleted, Show Files Deleted
; Generated using SmartGUI Creator 4.0
Gui, Show, x163 y104 h393 w493, Delete Helper
return

GuiClose:
ExitApp

ShowDeleted:
msgbox %filetodel% %file%
return




DialogDel:
FileSelectFile, file, 3, , Select File To Delete,
FileDelete, %file%
return


SearchDel:
F12::
        Input, UserInput, T5,{enter}{ins}
        ifequal,userinput,, return
        endkey=%errorlevel%
        Loop, c:\*.*, 1, 1
        {
                filetodel = %A_LoopFileFullPath%
                Found = Yes
                Loop, Parse, UserInput, %a_space%
                        IfNotInString, filetodel, %A_LoopField%, SetEnv, Found, No

                IfEqual, Found, Yes
                {


                        ifnotequal, endkey, Endkey:Insert, FileDelete, %filetodel%
                        Found = No
                        break
                }
        }
Return


HelpText:
Gui, Submit, NoHide
If (Change = 1) ; The CheckBox is checked
{
   GuiControl,, Text, Opens a dialog to select a file in which to delete
   GuiControl,, Text2, Click the button then press f12 then type the name of the file in which to delete (Note: there is no input box just type ) Then when or if it is found it will be deleted
   }
Else ; The CheckBox isn't checked
{
   GuiControl,, Text,  ; Change the Text Control to "Some Text"
   GuiControl,, Text2,  ; Change the Text Control to "Some Text"
   }
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: File Deletion Tool
PostPosted: October 25th, 2008, 4:56 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Fry wrote:
Delete Helper aids you in deleting files.
Hmm, I never thought deleting stuff was difficult. Anyway do you have a screenshot?

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: specter333 and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group