Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to create a notepad contains values by default...?

28 Oct 2014   #1
vigo09

Windows 7
 
 
How to create a notepad contains values by default...?

When creating a new text document thru,
Right click > new > Text document
should contain some data by default.. Please Help me create it.


My System SpecsSystem Spec
.
28 Oct 2014   #2
MilesAhead

Windows 7 32 bit
 
 

Welcome to the Forums.

If you make a text file named Template.txt in the folder C:\Windows\ShellNew whatever is in that file will be included in new text files created as you describe.

Mine has one line:
This is a text file template.

just for testing.
My System SpecsSystem Spec
28 Oct 2014   #3
Ztruker

Windows 10 Pro X64
 
 

I just tried creating Template.txt in C:\Windows\ShellNew.
Then right clicked on the Desktop and selected New, Text Document.

Nothing from Template.txt was in the new Text document when opened with Notepad.

Tried it on Windows 7 and Windows 8.1.
My System SpecsSystem Spec
.

28 Oct 2014   #4
Ztruker

Windows 10 Pro X64
 
 

Also, found this which may do what is wanted?????

How To Add an Object to the New Object List
My System SpecsSystem Spec
29 Oct 2014   #5
MilesAhead

Windows 7 32 bit
 
 

I forgot this part. For this key
HKEY_CLASSES_ROOT\.txt\ShellNew
Filename value of type REG_SZ should be
Template.txt

Edit: I guess using the filename "Template.ext" is only a convention. It doesn't trigger the entry. Whatever filename you use must be specified per extension in HKCR.

Edit2: That's what happens when I try to take a shortcut. Thought I knew that one so I didn't search.
My System SpecsSystem Spec
29 Oct 2014   #6
Ztruker

Windows 10 Pro X64
 
 

Can you put it all together in one post? I'm still confused?
Can a "template" for a text (.txt) file be created this way as .txt already had an entry.

How to create a notepad contains values by default...?-shellnew-txt.jpg


My System SpecsSystem Spec
29 Oct 2014   #7
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by Ztruker View Post
Can you put it all together in one post? I'm still confused?
Can a "template" for a text (.txt) file be created this way as .txt already had an entry.

Attachment 338688
Add the value
FileName

like this

How to create a notepad contains values by default...?-capture.png

Edit: Then all you need to do is create the file
C:\Windows\ShellNew\Template.txt

and type in whatever boilerplate text you want.


My System SpecsSystem Spec
29 Oct 2014   #8
Ztruker

Windows 10 Pro X64
 
 

That is cool, works like a charm.

Thanks for taking the time to explain it.

REG_SZ was the key.
My System SpecsSystem Spec
30 Oct 2014   #9
MilesAhead

Windows 7 32 bit
 
 

I should have gotten it right the first time but because the file name used was "template" I somehow got the idea that file in that folder did it all. The memory isn't as good these days. Glad it's working.
My System SpecsSystem Spec
Reply

 How to create a notepad contains values by default...?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Here's how to create a Default Profile without using SysPrep
OS: Windows 7 I have been looking at how to create a default profile without using SysPrep. There is a lot of information on the web on how it could be done in XP by just using a "copy to" command, and how it is not possible under Windows 7. The officially supported method from Microsoft...
Customization
Create ACER Factory Default Disk
I have an ACER Aspire 5733z-1204 64bit with Windows 7 Home Premium. Attempting to Create Factory Default Disk to (D) HL-DT-St DVDRAM GTSIN I formatted 3 Sony DVD-RW disks using the Windows 7 feature (Live File System Format) It doesn't seem to recognize the DVD-RW disk and keeps...
Installation & Setup
problem from replaced notepad ++ with notepad
I find some post that saying can replace our notepad with notepad++ so I do it but now it had a problem with notepad++ because when I open every *.txt it ask to create new file....like this picture
Installation & Setup
Default Location Shortcut - Create
How to Create a "Default Location" Shortcut in Windows 7 You can provide a default location for programs to use when a location sensor, such as a GPS receiver, is unavailable. All programs and users on the computer can use the default location. This will show you how to download or create a...
Tutorials
How to default Notepad?
Hello everyone i was saving some txt files in my notepad while doing this the setting i had it on saved obviously and now my notepad does not look right at all :( is there a way i could default it somehow or reset it back to original settings? thanx 4 anyhelp u can give me.
General Discussion
Default Programs Shortcut - Create
How to Create a Default Programs Shortcut in Windows 7 This will show you how to create or download a Default Programs shortcut. You can also Pin to Taskbar or Pin to Start Menu this shortcut, or move where you like for easy use. EXAMPLE: Default Programs To Download the "Default...
Tutorials


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:26.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App