Archived from groups: microsoft.public.windowsnt.misc (More info?)
Hi all,
Just a quick question if I may:
I have a situation where I want to be able to create a new text document using
the 'New' entry on my right-mouse context menu. after a bit of experimentation I
find the syntax of:
[HKEY_CLASSES_ROOT\.txt]
[HKEY_CLASSES_ROOT\.txt\ShellNew]
"Command"="D:\\WinNT\\System32\\Notepad.exe J:\\Untitled.txt"
will basically achieve what I want. If you try calling Notepad.exe WITHOUT the
trailing filename, this entry crashes Explorer.exe :-(
Of course 'Untitled.txt' does not exist, so when Notepad launches, you get the
error dialog of "Cannot find the Untitled.txt file. Do you want to Create it?"
Does anyone know of a method of suppressing this dialogue, so notepad just
opens, or alternately, a better syntax for the ShellNew command ?
Calvin.
PS: I actually asked this question a couple of weeks ago in the
microsoft.public.windowsnt.registry newsgroup, and nobody responded :-(
Hi all,
Just a quick question if I may:
I have a situation where I want to be able to create a new text document using
the 'New' entry on my right-mouse context menu. after a bit of experimentation I
find the syntax of:
[HKEY_CLASSES_ROOT\.txt]
[HKEY_CLASSES_ROOT\.txt\ShellNew]
"Command"="D:\\WinNT\\System32\\Notepad.exe J:\\Untitled.txt"
will basically achieve what I want. If you try calling Notepad.exe WITHOUT the
trailing filename, this entry crashes Explorer.exe :-(
Of course 'Untitled.txt' does not exist, so when Notepad launches, you get the
error dialog of "Cannot find the Untitled.txt file. Do you want to Create it?"
Does anyone know of a method of suppressing this dialogue, so notepad just
opens, or alternately, a better syntax for the ShellNew command ?
Calvin.
PS: I actually asked this question a couple of weeks ago in the
microsoft.public.windowsnt.registry newsgroup, and nobody responded :-(