22 replies
by bill_h
PLEASE NOTE: This solution requires changes to the system registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs (see appropriate help topics in RegEdit.Exe or RegEdt32.Exe.)
The first step is to make a copy of the program with a different extension. I'll use User Manager for an example. Navigate to the folder containing UsrMgr.Exe. Right-click on the file and select "Copy". Now right-click anywhere in the folder and select "Paste". This will create a file named "Copy of usrmgr.exe". Right-click on this file, select "Rename", and change the name to "usrmgr.ex2". A message will be displayed concerning the change to the extension; click on "Yes".
At this point, the system does not know what to do with a ".ex2" file; if you double-click on "usrmgr.ex2", a dialog box ("Open With...") will be displayed. This is where the registry changes come in.
Add a key named "ex2file" to HKEY_CLASSES_ROOT. Change the "Default" value to "Application". Add a new value named "EditFlags" of type REG_BINARY with a value of 00 00 00 00.
Add a key named "shell" to "ex2file".
Add a key named "open" to "ex2file\shell".
Add a new value named "EditFlags" of type REG_BINARY with a value of 00 00 00 00.
Add a key named "command" to "ex2file\shell\open". Change the "Default" value to "%1 " (include the quotes).
Add a key named "runas" to "ex2file\shell".
Add a new value named "Extended" of type REG_SZ; no value is needed.
Add a key named "command" to "ex2file\shell\runas". Change the "Default" value to "%1 " (include the quotes).
Add a key named ".ex2" to HKEY_CLASSES_ROOT. Change the "Default" value to "ex2file".
I'm running out of room...see the following comment for the rest of the solution.
by bill_h
Make sure to change the link on the web page to point to the *renamed* program. Now when you click the link, the first dialog box (Open/Save) will display. Select "Open this file...", clear the "Always ask before opening this type of file", and click on "OK". The "User Manager" application will then open. Subsequent clicks on the link (from the same workstation) will cause the app to open immediately, without the Open/Save dialog box.
This change will need to be made on *all* workstations, and for all applications you wish to link to. This doesn't harm the original app in any way.
One shortcut to making the registry changes on multiple workstations is to use a ".reg" file; this will enter the changes automatically, and avoid thetedium and possible errors of manual entry.
If you have any questions or problems implementing the above solution, or need more info regarding a ".reg", drop me an e-mail...
by stefanw
I have confronted a similar situation. I wanted to have an auto-loading cd that contains installs, batch files, executables that i could run at each client with just the cd. My solution was to create a VB ActiveX dll, that upon auto-run of the cd, gets installed onto the computer and registered via regsvr32 into the registry. The only thing this dll does, is calls the shell function with whatever command I pass into it. Then, with Javascript in a web page, I create an activeX object, and call the dll function with the command I would like to execute. You will get a warning message about running an active x dll, but that can be eliminated by getting it signed appropriately. Here is an example of the javascript that calls my activeX dll:
var obj;
obj = new ActiveXObject("ITAutoW.System");
obj.RunCommand(cmd)
The RunCommand function just executes a shell command in visual basic, thereby executing whatever command I like.
by rsv
Hi,
Check the href/URL of the hyperlink/shortcut you must access the website from the webserver (your local webserver). Try to change the href/URL of the hyperlink/shortcut, it should be like this "http://yourwebservername/directoryname/filename". For example I have a website in my computer, My webserver name is "rsv" and website is in the folder named "asp", so I created a shortcut on the Desktop, the URL of this shortcuts is "http://rsv/asp/index.htm", when I click this shortcut I dont get any messageboxes.
Try this, maybe this fixes your problem.
by kmerrillt
by james_randy
by tjc
by tjc
When you download the program, make sure the checkmark is cleared from "Always ask before opening this type of file". for the other one, I recommend going into the internet options and make sure your security settings are set to the lowest possible.
Because of the security of how Websites work you will get those message sicne HTML doesn't run as a standard program. You will have to write a program, a menu program to do what you want with no HTML at all.
The first step is to make a copy of theprogram with a different extension. I'll use User Manager for an example. Navigate to the folder containing UsrMgr.Exe. Right-click on the file and select "Copy". Now right-click anywhere in the folder and select "Paste". This will create a file named "Copy of usrmgr.exe". Right-click on this file, select "Rename", and change the name to "usrmgr.ex2". A message will be displayed concerning the change to the extension; click on "Yes".
Hope It Helps!!
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending