Add button to Win7 explorer toolbar

nathan323

New member
Local time
12:19 AM
Messages
3
Howdy.

I want to add a button that creates a new text document and put it next to the New Folder button in Windows 7, so that clicking it will give me the same result as right-clicking in the folder and choosing New>Text Document.

I have read this page: Add a Custom Command Button to the Windows 7 Explorer Toolbar - Win7, Explorer toolbar, FolderTypes, command bar, custom button, RegEdit, registry, jscript, Dan Rollins

and this page: Adding custom buttons to the Explorer command bar « winJade



So ive got the button appearing, and i can get it to open the actual program Notepad, but not create a new text document inside the folder. I dont know if its just a variable i need to add onto the command line "c:\windows\system32\notepad.exe", or its a different command altogether..

Any help would be greatly appreciated!

Nathan
 

My Computer

OS
Windows 7
CPU
Intel i5
Memory
4GB

My Computer

OS
Windows 7 Enterprise 64-bit
CPU
AMD Phenom II X4 3.0GHz
Motherboard
ASUS M5A97
Memory
8GB G-Skill Ripjaws DDR3 1333
Graphics Card(s)
PNY GeForce 460 GTX 1GB OC - Enthusiast Edition
Sound Card
VIA High Definition Audio
Monitor(s) Displays
Dell 19"
Screen Resolution
1280x1024
Hard Drives
1TB - Primary
160GB - Secondary
250GB - External backup for important files
PSU
OCZ Fata1ty 700W Modular PSU
Case
ASUS
Keyboard
Microsoft Wireless Keyboard 2000
Mouse
Microsoft Wireless Mouse 2000
Internet Speed
3 Mbps/768 kbps
Hi thx for the reply. Im trying to replicate the action of right clicking and choosing New>Text Document. So when i push the button, a new un-opened text document will appear in the folder, with title text highlighted ready for renaming, same as what happens now with context menu method. Basically the exact same thing as the New Folder button, except New Text Document..
 

My Computer

OS
Windows 7
CPU
Intel i5
Memory
4GB
Try the application 7Plus. It has an option that creates a new text file when you press 'F7'. It's pretty cool and I use it often. It has a feature where you can add a folder shortcut to the explorer bar as well, which didn't make sense to me since we have the favorites navigation panel. But I found a way to add a button for 'Copy to', 'Move to', 'Show desktop', Switch windows' and 'Unblock Files' to the explorer bar, just using JavaScript. You can download the app for free from my livespaces skydrive account ExBarButtons.zip - Windows Live it's pretty cool and almost anyone can modify it to add different buttons and actions.
ssbuttons.jpg
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 530
OS
Vista\7
CPU
64 bit Intel Core2 Duo E4600 2.4ghz X 2
Motherboard
Intel® G33 Express
Memory
4gb 800-MHz DDR2 SDRAM
Graphics Card(s)
Intel(R) G33/G31 Express Chipset Family 320Mb
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Dell™ E228WFP Flat Panel Monitor (1)
Hard Drives
WDC WD5000AAKS-75YGA0 ATA Device 465.7Gb
Maxtor 6 Y120P0 USB Device 114.4Gb
Try the application 7Plus. It has an option that creates a new text file when you press 'F7'. It's pretty cool and I use it often. It has a feature where you can add a folder shortcut to the explorer bar as well, which didn't make sense to me since we have the favorites navigation panel. But I found a way to add a button for 'Copy to', 'Move to', 'Show desktop', Switch windows' and 'Unblock Files' to the explorer bar, just using JavaScript. You can download the app for free from my livespaces skydrive account ExBarButtons.zip - Windows Live it's pretty cool and almost anyone can modify it to add different buttons and actions.
ssbuttons.jpg

Hey dude I used the move to/copy to element but, I was wondering (should have asked first, I know) how to undo it in case I need to because I'm trying to find a way to remove the email and share buttons which force the copy to/move to buttons off into a menu :s
 

My Computer

Computer Manufacturer/Model Number
Hp Compaq CQ56 156SA
OS
windows 7 Home Premium 64 Bit
CPU
AMD V140
Memory
2GB
Graphics Card(s)
ATI Mobility Radeon HD 4250
Sound Card
Realtek
Monitor(s) Displays
Generic
Screen Resolution
1366 x 768
Hard Drives
Hitachi
Mouse
Wireless LG
Internet Speed
Finger-licking good
Other Info
Windows 7 Home Premium Pre-Installed.
Old Machine: HP Pavilion DV6 1120sa (R.I.P)
Try the application 7Plus. It has an option that creates a new text file when you press 'F7'. It's pretty cool and I use it often. It has a feature where you can add a folder shortcut to the explorer bar as well, which didn't make sense to me since we have the favorites navigation panel. But I found a way to add a button for 'Copy to', 'Move to', 'Show desktop', Switch windows' and 'Unblock Files' to the explorer bar, just using JavaScript. You can download the app for free from my livespaces skydrive account ExBarButtons.zip - Windows Live it's pretty cool and almost anyone can modify it to add different buttons and actions.
ssbuttons.jpg

Can't this be done manually editing the registry without using your supplied scripts which get located in ProgramData? I can't get your scripts to run even though it's from an Admin console. I'd like to have the flip3d and show desktop buttons and not the rest of them. I've already added some buttons of my own but those two would be a welcome addition.
 

My Computer

Computer Manufacturer/Model Number
Averatec 6130HS-20
OS
Windows 7 Professional 32-bit (6.1, Build 7600)
CPU
Intel(R) Pentium(R) 4 3.00 GHz HT
Memory
2.0 GB
Graphics Card(s)
ATI Mobility Radeon 9600 64MB
Sound Card
Realtek AC'97 Audio
Screen Resolution
1280 x 800
Hard Drives
Seagate 96023A 60GB 7200RPM -
Seagate FreeAgentDesktop 250GB
Cooling
20 Inch Box Fan
Mouse
Targus PAWM10 Wireless Optical Laptop Mouse
Hey dude I used the move to/copy to element but, I was wondering (should have asked first, I know) how to undo it in case I need to because I'm trying to find a way to remove the email and share buttons which force the copy to/move to buttons off into a menu :s
I was also looking for how to remove the "Share with" button, when I found this post. Be sure you export the "Windows.share" key (as a backup) before you delete it! This way, you will be able to restore the button if you want it back again.
 

My Computer

OS
Windows 7 Home Premium x64
But I found a way to add a button for 'Copy to', 'Move to', 'Show desktop', Switch windows' and 'Unblock Files' to the explorer bar, just using JavaScript. You can download the app for free from my livespaces skydrive account ExBarButtons.zip - Windows Live it's pretty cool and almost anyone can modify it to add different buttons and actions.

A couple of more questions on this toolbar scripts.

1) What is the icon library for?
2) If the usable scripts are all located in C:\ProgramData\Cad\ExplorerBarEX\MyScripts\ExplorerBarUtilities.js , why place other items in the subfolder?

Points of awareness

1) Your scripts are set up for C:, mine as well as others may have Win 7 on another partition which I do but edited the scripts to reflect
2) If users have already edited the registry prior to running this and have some custom buttons under one of the folder types listed by your class ids and which already take up the (0) or (1) for example, your script will not overwrite them nor add to them
 

My Computer

Computer Manufacturer/Model Number
Averatec 6130HS-20
OS
Windows 7 Professional 32-bit (6.1, Build 7600)
CPU
Intel(R) Pentium(R) 4 3.00 GHz HT
Memory
2.0 GB
Graphics Card(s)
ATI Mobility Radeon 9600 64MB
Sound Card
Realtek AC'97 Audio
Screen Resolution
1280 x 800
Hard Drives
Seagate 96023A 60GB 7200RPM -
Seagate FreeAgentDesktop 250GB
Cooling
20 Inch Box Fan
Mouse
Targus PAWM10 Wireless Optical Laptop Mouse
Greg,

1st.: Yes, the registry items could be manually added. They are for convienence only. But the commands can and wil not execute without the scripts in ExplorerBarUtilities.js.

2nd.: In order for the installation scripts to work, you will need to take ownership of at least the 'FolderTypes' registry key. You can manually enter in the information yourself. Look in the 'Reference' folder on the same level as the 'Scripts' folder for an example registry file for the exact key structure and the CID's I created for the buttons.

3rd.: The icon library is for Windows Vista, which shows icons on the explorer bar. Only needed for the Copy to and Move to buttons.

4th.: The extra scripts in the 'Scripts' folder is just a backup of the installation scripts which do not get copied over so as to avoid any 'File in use' error that may occur.

5th.: Good point about the drive spec. I will need to fix that or add a note to change the drive letter to correspond to your installation of windows. For now, anyone downloading this should do that themselves.

6th.: No, the scripts will not overwrite any buttons that already exists. I have designed it to discover the last used number for each folder type and then use the next available number. That's why I didn't simply provide a reg file to install the commands.

CorneliusM, I haven't forgoten about you. I do have an uninstallation script, but not with me at the moment. I'll be back home late tonight and post it as soon as I can. Sorry, my bad, that script should have been included, I'll make sure to update the zip file to include that ASAP. I'll also post it here in this thread for anyone needing it. In the meantime, if you need to uninstall it manually.:
Under the keys 'TasksItemsSelected' and 'TasksNoItemsSelected' for each folder type under the 'FolderTypes' key you will find keys with the names 0, 1, 2, etc... To remove my buttons only, delete any of those keys that has a string value key named 'CAD' located directly under the 'Default' key. Please backup your registry before doing so.
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 530
OS
Vista\7
CPU
64 bit Intel Core2 Duo E4600 2.4ghz X 2
Motherboard
Intel® G33 Express
Memory
4gb 800-MHz DDR2 SDRAM
Graphics Card(s)
Intel(R) G33/G31 Express Chipset Family 320Mb
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Dell™ E228WFP Flat Panel Monitor (1)
Hard Drives
WDC WD5000AAKS-75YGA0 ATA Device 465.7Gb
Maxtor 6 Y120P0 USB Device 114.4Gb
Greg,

6th.: No, the scripts will not overwrite any buttons that already exists. I have designed it to discover the last used number for each folder type and then use the next available number. That's why I didn't simply provide a reg file to install the commands.

.
Thanks Cad, that was my point. Your script did not discover the last used number for each folder type, at least not for me. If I had a custom one within a folder type which is in the list of CID's of your script, then no functions were added but to your credit and as you say, it did not overwrite mine nor did it add to it. Anyhow, I have edited it for personal use to just add the two which I wanted and it is working well! Thank you.
 

My Computer

Computer Manufacturer/Model Number
Averatec 6130HS-20
OS
Windows 7 Professional 32-bit (6.1, Build 7600)
CPU
Intel(R) Pentium(R) 4 3.00 GHz HT
Memory
2.0 GB
Graphics Card(s)
ATI Mobility Radeon 9600 64MB
Sound Card
Realtek AC'97 Audio
Screen Resolution
1280 x 800
Hard Drives
Seagate 96023A 60GB 7200RPM -
Seagate FreeAgentDesktop 250GB
Cooling
20 Inch Box Fan
Mouse
Targus PAWM10 Wireless Optical Laptop Mouse
Like the writer of the 1st message in this thread, I'm looking for the command line of creating a new text document in the currently displayed folder in Windows Explorer.

The following batch command line can create a new empty text file in the current directory. But the current directory may not be the currently displayed folder in Windows Explorer. How should it be improved? Or any other way?

type nul > new_text_file.txt
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
self-built
OS
Windows 7 Home Premium x64 SP2
CPU
AMD Phenom II X3 720 BE
Motherboard
GigaByte GA-890GPA-UD3H
Memory
A-Data DDR3 1333 Supreme SU3U1333B2G9-R 2G x4
Graphics Card(s)
ATI Raedon HD 4290 IGX on AMD SB850 chipset
Sound Card
on-board Realtek ALC892
Monitor(s) Displays
Samsung S22D300NY 21.5" wide screen
Screen Resolution
1280 x 720
Hard Drives
WD RE4 WD5003ABYX 500GB SATA2 x2 (RAID-0)
PSU
D.HIGH DHP-400GH-80P 400W
Case
no name
Cooling
Foxconn fan and heater for AMD CPU
Keyboard
Logitech standard keyboard Y-SM48
Mouse
Toshiba Pala Chan
Internet Speed
GPON 300M/100M
Antivirus
AVG AntiVirus Free
Browser
Vivaldi & Firefox
Back
Top