A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

setting the default name for a (rightclick - new) template file ?



 
 
Thread Tools Display Modes
  #1  
Old October 26th 17, 09:19 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default setting the default name for a (rightclick - new) template file ?

Hello All,

I just added an template file for an HTML document (for the rightclick -
new option), but I would like to see another default filename than the "New
Firefox HTML Document.htm" I now get. "New document.htm" or just
"document.htm" would be my preference.

A bit of googeling shows others have the same question, but no answer seems
to have been given. :-\

So, anyone knows how to set the new files default name ?

Regards,
Rudy Wieser


Ads
  #2  
Old October 26th 17, 10:13 AM posted to microsoft.public.windowsxp.general
Good Guy[_2_]
external usenet poster
 
Posts: 3,354
Default setting the default name for a (rightclick - new) template file?

On 26/10/2017 09:19, R.Wieser wrote:
Hello All,

I just added an template file for an HTML document (for the rightclick -
new option), but I would like to see another default filename than the "New
Firefox HTML Document.htm" I now get. "New document.htm" or just
"document.htm" would be my preference.

A bit of googeling shows others have the same question, but no answer seems
to have been given. :-\

So, anyone knows how to set the new files default name ?

Regards,
Rudy Wieser


The default name depends on what your default browser is. When I do
that, I get this:

https://i.imgur.com/bGQ3dlM.png https://i.imgur.com/bGQ3dlM.png

But you can also change the name because the default filename is ready
to be changed. However, if you forget to change the name, just press F2
or click once on it and again and the name can be changed.

Did you create a blank HTML file and saved in:
c:\windows\ShellNew\index.html so that it starts with the default code?
the default code under HTML5 is:

!DOCTYPE htmlhtml lang="en"headmeta charset="UTF-8"meta
name="viewport" content="width=device-width, initial-scale=1.0"meta
http-equiv="X-UA-Compatible"
content="ie=edge"titleDocument/title/headbody/body/html I
created a template file called index.html and saved it in the folder
shown above. I am using 10 as you must know if you have been reading my
posts otherwise do your own research as you seem to be somewhat
intelligent than an average Windows user. If you want exact steps then
post back but I doubt you'll ever do.





--
With over 500 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.

  #3  
Old October 26th 17, 11:13 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default setting the default name for a (rightclick - new) template file ?

Good Guy,

The default name depends on what your default browser is.


:-) I came to the same conclusion.

But (in the case of an HTML document) why ? HTML is not (or should not
be) browser dependant ...

But you can also change the name [snip]


Yes, my 'puter does the same (showing the generated filename in edit mode),
but I bet you did not know you can also select a file, wait a bit and than
left-click a second time to switch to filename editing mode. :-p :-)
(happens to me all the time when I execute a too-slow double-click. :-\ )

Did you create a blank HTML file and saved in:
c:\windows\ShellNew\index.html


No. I used the filename name "document.htm" instead. :-p (again). But
yes, that file is in place (though a bit more basic -- just as I like & want
it).

The question remains though: can I change/influence that generated name, and
if so how.

Regards,
Rudy Wieser

p.s.
With over 500 million devices now running Windows 10,
customer satisfaction is higher than any previous version
of windows.


I hope you *do* realize that the first has got *very* little to do with the
second ? Especially with MS-es force-feeding in this regard ? To me
that tagline reads as the a run-of-the-mill marketing blurb (or "lie" for
short).


  #4  
Old October 26th 17, 12:07 PM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default setting the default name for a (rightclick - new) template file ? Solution found

As I can't seem to tell the OS which filename template to use I did look for
a way to start an executable instead of having it copy the template file.
And lo-and-behold, thats actually possible (using "command" instead of
either "NullFile" or "FileName").

With it I started a script, which than creates the file and fills it with
the desired contents. Problem solved.

Regards,
Rudy Wieser


  #5  
Old October 26th 17, 02:19 PM posted to microsoft.public.windowsxp.general
Good Guy[_2_]
external usenet poster
 
Posts: 3,354
Default setting the default name for a (rightclick - new) template file? Solution found

On 26/10/2017 12:07, R.Wieser wrote:
As I can't seem to tell the OS which filename template to use I did look for
a way to start an executable instead of having it copy the template file.
And lo-and-behold, thats actually possible (using "command" instead of
either "NullFile" or "FileName").

With it I started a script, which than creates the file and fills it with
the desired contents. Problem solved.

Regards,
Rudy Wieser


No you haven't solved the problem. File name is still the same and that
was your original problem. changing "Open With" won't change the file
name for you unless you do Save as. Then again this defeats the
purpose. Changing the filename when creating is the best method.

However, as far as you are concerned, you have solved the problem so go
and open the bottle and dance naked in your empty room to celebrate your
achievements.



--
With over 500 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.

  #6  
Old October 26th 17, 04:00 PM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default setting the default name for a (rightclick - new) template file ? Solution found

Good Guy,

No you haven't solved the problem.


Yes, I have.

File name is still the same


Nope, it isn't.

changing "Open With" won't change the file name for you unless
you do Save as.


Whut ? I don't think we are even talking about the same problem here ...
:-(
(check out the subject line)

Changing the filename when creating is the best method.


Agreed. And that is exactly what I did.

To quote myself:

"With it I started a script, which than creates the file"

Don't you think that a script can create a file using any name it pleases ?

so go and open the bottle and dance naked in your empty room
to celebrate your achievements


Thank you for your blessings on my plans for later on this evening.

One question though: Do you think I should close the blinds this time ? :-D

Regards,
Rudy Wieser


  #7  
Old October 26th 17, 04:21 PM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default setting the default name for a (rightclick - new) template file ? Solution found

Good guy,

I realized you probably missed some information from the first paragraph:

To quote myself:

"I did look for a way to start an executable instead of having it
copy the template file."

.... grmbl ... I'm not sure if I can actually rephrase it. :-\

It means that *instead of* having the rightclick - new action copy a
template file I wanted it to run a program*. And that is actually possible,
by way of using a different registry key ("Command" instead of "NullFile" or
"FileName").

*and in my case that program than runs a script, which in turn than creates
the file.

For an example look at the ShellNew registry entry for the ".lnk" extension.
It also starts a program instead of copying a template file.

Regards,
Rudy Wieser


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 05:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.