That's cause you didn't register your file type correctly. Well, technically, you didn't register your "application" correct.
http://msdn.microsoft.com/en-us/library/cc144148(v=vs.85).aspx#fa_register_type\
You registered .int correctly. .int
says to call intfile
. intfile however is where you put in the application that handles the file! So Shellex goes looking into intfile
and all it finds is a string in the default field. So the operation fails.
Since you want string there, you have to supply the Shell with a default verb to execute. Under the intfile
create shell\open\command. Enter the full path to your application, for example, "%ProgramFiles%\Notepad++\Notepad++.exe" "%1".
FileName is the Full path to the file you want to make a copy, so you need "%windir% and not WINDOWS.
Edit
I can't believe I'm condoning this method. . .
But I don't know of any way to add this without writing a program. . .
edit2:
Ok here we go.
Key .int
has Default(SZ)
= intfile
and Context Type(SZ) = plain.text
. Under Key .int
, you'll have subkey Shellnew
. The default should be empty. Make a new empty string (Reg_SZ) and for the value put in the filename: `C:\windows\ShellNew\NewLocalization File'.
Under intfile
make the default New Localization File.
Note the lack of double quotes. Now intfile
needs the following subkeys: shell
, make it's Default = open
. Next, make subkey open
under shell.
Now make subkey command
under open.
Put the full path of the program under the string with quotes. ie "c:\Program Files (x86)\Notepad++\notepad++.exe" "%1"
. Note there are double quotes.
Edit:3
So it looks like the OP ran into an unknown issue and solved it this way.
Hrm ok figured it out! You were right mostly, and I was right a little. The problem was I had opened the file once and set the default program to notepad++ in the pop up dialogue. This created a key called int_auto_file. I went through the registry, very time consuming, and deleted all references to the .int extension. After that I rebuilt them and now it works perfectly.
So what you can do then is run a batch file similar to the one below:
@echo off
net use z: \\server\folder1 /user:jonsmith * /persistent:no
net use y: \\server\folder2 /persistent:no
net use x: \\server2\folder3 /user:jsmith * /persistent:no
This will ask for the password JUST when you first connect to it. Since you can't connect to the same server with multiple usernames, as soon as you authenticate the first time on the server, it will use that username and password for the rest of the connections until you disconnect all the drives or log off
Best Answer
Open
regedit
from the Start Menu (You can also invoke the file using Run command).Navigate to the following registry branch:
Click on the arrow to expand it and delete the sub-key named
UserChoice
. Exit from Registry Editor.After this do a reboot.