Button bar: Delete (no recycle), Empty recycle, New file?
Moderators: Hacker, petermad, Stefan2, white
Button bar: Delete (no recycle), Empty recycle, New file?
Hi,
I searched the forum and web but cannot find how to add buttons to button bar that would perform these operations:
- delete selected file(s)/folder(s) without moving them to recycle bin (I already use basic delete button but would like to have also alternative button like this) and to have the function like cm_Delete so I can drop files/foldewr on it
- empty recycle bin (no confirmation)
- create new empty file with name to be entered before creation (not to create it named 'newfile' but with the name I write
Hope someone can help with these.
Thank you.
I searched the forum and web but cannot find how to add buttons to button bar that would perform these operations:
- delete selected file(s)/folder(s) without moving them to recycle bin (I already use basic delete button but would like to have also alternative button like this) and to have the function like cm_Delete so I can drop files/foldewr on it
- empty recycle bin (no confirmation)
- create new empty file with name to be entered before creation (not to create it named 'newfile' but with the name I write
Hope someone can help with these.
Thank you.
--
Vesna
Vesna
Here is a program that you can assign to a button to empty the recycle bin.
http://www.optimumx.com/Download/#EmptyRecycleBin
http://www.optimumx.com/Download/#EmptyRecycleBin
Bob P
3-User License 71012
3-User License 71012
Hello,
Or an alternative solution without AHK here
HTH
Paste the next code in you toolbar. -it has some little bug, but it works. Beware with the next command, it delete selected files and folder without confirmation and they are not moved to the recycle bin.- delete selected file(s)/folder(s) without moving them to recycle bin (I already use basic delete button but would like to have also alternative button like this)
Code: Select all
TOTALCMD#BAR#DATA
%ComSpec%
/c for %%F in (%S) do rd /s /q %%F & erase /f /s /q %%F
shell32.dll,131
Delete without confirmation
-1
Drag your files/folders while SHIFT is pressed to the F8 function button.and to have the function like cm_Delete so I can drop files/foldewr on it
You can to use Nircmd for this purpose, make a button with the command: <path>nircmd.exe emptybinempty recycle bin (no confirmation)
You can use AHK:create new empty file with name to be entered before creation (not to create it named 'newfile' but with the name I write
Code: Select all
IfWinActive, ahk_class TTOTAL_CMD
{
Send +{F4}
}
HTH
I can read English, but... I write like Tarzan. (sorry)
I pasted it and icon shows up but if i select a file and click this new button for small part of second black dos windows opens and closes, but not for enough time for me to see what error it displays (file is not deleted).Sombra wrote: Paste the next code in you toolbar. -it has some little bug, but it works. Beware with the next command, it delete selected files and folder without confirmation and they are not moved to the recycle bin.Code: Select all
TOTALCMD#BAR#DATA %ComSpec% /c for %%F in (%S) do rd /s /q %%F & erase /f /s /q %%F shell32.dll,131 Delete without confirmation -1
Could be an error in empty lines in code or something? I have no knowledge of this coding, hope you can help some more with this code?
thank you for this, really usefull little exe, i added some more buttons with it (opening CD-ROM, turning off monitor, PC, taking screenshot after x seconds and similarempty recycle bin (no confirmation)
You can to use Nircmd for this purpose, make a button with the command: <path>nircmd.exe emptybin

Hm, I will stay with right click-new file because none of suggestions asks me for filename before creating it.create new empty file with name to be entered before creation (not to create it named 'newfile' but with the name I write


--
Vesna
Vesna
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
For testing pupose, you can add a pause command like:not for enough time for me to see what error it displays
Code: Select all
/c for %%F in (%S) do rd /s /q %%F & erase /f /s /q %%F & pause
#5767 Personal license
Hmmmhh... I have tested it in win xp and works fine (even with pause suggested by sqa_wizard.
Be sure to write the next strings in bold inside configuration for your button:
Command: %comspec% (or command.com or cmd.exe)
Parameters: /c for %%F in (%S) do rd /s /q %%F & erase /f /s /q %%F
An alternative way for remain open the dos box is changing /c by /k

Also you can use SHIFT+F4 (without button) name is suggested but it is autoselected and will be overwrite with text that you write.
HTH
Be sure to write the next strings in bold inside configuration for your button:
Command: %comspec% (or command.com or cmd.exe)
Parameters: /c for %%F in (%S) do rd /s /q %%F & erase /f /s /q %%F
An alternative way for remain open the dos box is changing /c by /k
Glad to hearhank you for this, really usefull little exe, i added some more buttons

For the AHK code is necessary to have installed AutohotkeyI will stay with right click-new file because none of suggestions asks me for filename before creating it.
Also you can use SHIFT+F4 (without button) name is suggested but it is autoselected and will be overwrite with text that you write.
HTH
I can read English, but... I write like Tarzan. (sorry)
Yes, I have checked the code again, evberything pasted ok.Sombra wrote: An alternative way for remain open the dos box is changing /c by /k
Now I changed /c to /k and i see in dos window only path to folder where I am is displayed, nothing happens, nothing gets deleted.
can this shortcut be turned into button? this is exactly what I want but on a button, trying to avoid keyboard use. And can opening the Notepad be avoided? just need file created, no editing, opening of it.Also you can use SHIFT+F4 (without button) name is suggested but it is autoselected and will be overwrite with text that you write.
--
Vesna
Vesna
Vesna_Cro wrote:SHIF+F4 ... can this shortcut be turned into button? this is exactly what I want but on a button, trying to avoid keyboard use. And can opening the Notepad be avoided? just need file created, no editing, opening of it.
Code: Select all
TOTALCMD#BAR#DATA
%comspec% /c copy nul:
?new.txt
WCMICONS.DLL,28
new empty file
-1
Holger
still same result: only full path to folder where i am located is displayed (long names still even tough I replaced %S with %s.HolgerK wrote:I didn't test it, but %S (capital) puts long names into the command line./c for %%F in (%S) do rd /s /q %%F & erase /f /s /q %%F
May be some problems with non 7Bit US-ASCII characters.
Try to replace %S with %s (lower case).
No visible delete or erase command, only path displayed.

--
Vesna
Vesna
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
I installed new tcmd 7.01 and it works but too much!!! 
this is the code:
/c for %%F in (%S) do rd /s /q %%F & erase /f /s /q %%F
i selected one jpg file which i had in 3 places on my comp (jpg in 3 sizes, always same filename) and it deleted it in all 3 places?!
e:/test.jpg
e:/images/test.jpg
e:/desktop/test.jpg
???

this is the code:
/c for %%F in (%S) do rd /s /q %%F & erase /f /s /q %%F
i selected one jpg file which i had in 3 places on my comp (jpg in 3 sizes, always same filename) and it deleted it in all 3 places?!
e:/test.jpg
e:/images/test.jpg
e:/desktop/test.jpg
???
--
Vesna
Vesna