opening running associated extension exe
My built LabVIEW application is associated with a specific file type in Windows:
and opens double click on the file using the command line argument:
This allows me to _launch_ my request, when the user double-clicks a file with the specified extension and process this file.
But it happens only if the application is not running.
What should I do if I want to open the double clicked when my program works?
Any system event happening that I can record and process?
The only way I see now is to build an intermediate application that will be associated with extension, check if the main application is running and pass arguments to it.
Alexander_Sobolev
Well, there were many discussions on this subject, for example 1, 2, 3 , and in the early days, I tried a few ways of implementation of DDE in my applications. You may use the private property of LabVIEW which is called "OS Open Document" (needs SuperSecretPrivateSpecialStuff = true Labview.ini chain so that it is visible in the window configuration of events). More information is presented here and hereand it worked for me... I also find more elegantly and found this article. LabVIEW has already integrated server DDE and your application can receive WM_DDE_EXECUTE message using calls to the system API. So, I made an example of this receiver - it works if you have saved a file extension in Windows (HKEY_CLASSES_ROOT branch in the registry) and is a double click of your file. This also works when you double-click a shortcut to your application and when you double-click your application exe, even if it is already running. It does not work if you have saved your file with key ddeexec extension (equivalent to open (%)) with command key 1 (equals "Path to your app\App.exe" '%1').)) But in this case, the "OS Open Document" private property works! And you can even use both methods or can choose one of them.
For the look of simplicity these registry keys. If you have saved *.ton file extension, you should have
[HKEY_CLASSES_ROOT\.ton] @="ton_auto_file"
and
[HKEY_CLASSES_ROOT\ton_auto_file\shell\open\command] @="\"C:\\Test\\Application.exe\" \"%1\""
the registry keys. In this case the method 1 will work. If you add this key
[HKEY_CLASSES_ROOT\ton_auto_file\shell\open\ddeexec] @="open(%1)"
then the method 1 does not work, but the method 2 ("OS Open Document") will work.
My test program is in attachment (LV 2011). It requires Windows Message Queue library (second link is for LV 2009 and greater) for the interception of DDE messages. You can integrate the message listener loop in parallel thread in your application and stop with the notifier or a similar mechanism.
Tags: NI Software
Similar Questions
-
Failed to open all files with the extension .exe in Vista Business SP2. Dialog box appears and asks which program to use. Seems to have lost the info file assoc after virus removal. Any suggestions?
Hello
Try the methods provided below and check if the problem persists.
Method 1:
Try the fix it or follow the manual for troubleshooting to solve the problem.
When you run an .exe on a Windows XP, Windows Vista or Windows 7 computer file, the file can start another program
http://support.Microsoft.com/kb/950505
Note:
The link above contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
How to back up and restore the registry in Windows
http://support.Microsoft.com/kb/322756
Method 2:
Download and run Microsoft Safety Scanner and check if the problem is caused by a Virus/Malware.
Microsoft safety scanner
http://www.Microsoft.com/security/scanner/en-us/default.aspx
-
Cannot open files (desktop programs) *.exe
When I try to open .exe files I get a message error that says "this file doesn't have a program associated with it for performing this action. Create an association in the Folder Options Control Panel. " I went to control panel > tools > folder options > file types and tried to put 'exe' to 'demand', but that doesn't seem to work. Funny enough, I am able to open other types of programs such as pictures, videos and files PDF and if I open a file html directly, I can open Firefox, but I can't open firefox.exe directly. I want to run an antivirus program or malware-check software, but of course, I can't open any .exe files.
I am running Windows XP SP3 on a Lenovo Thinkpad T61.
Any suggestions would be greatly appreciated. Before you answer, please note the specific language in my error message. I want to emphasize that this link does not solve my problem. http://support.microsoft.com/kb/837334.
Hello
· Since when are you facing this problem?
· Remember to make changes to the system?
Method 1:
I suggest you follow the steps mentioned in the article below.
Cannot open files with extensions such as.exe, .com, and.lnk on a Windows XP-based computer
http://support.Microsoft.com/kb/923077
Method 2:
I suggest that you should follow the steps mentioned in the article below.
How to change or choose the program that starts when you double-click a file in Windows XP
http://support.Microsoft.com/kb/307859
Method 3:
If the problem started recently, so, I suggest you do a system restore and see if the problem is resolved. Follow the steps mentioned in the article below.
How to restore Windows XP to a previous state
-
Bridge files have extension Exe
I am using the bridge on a Windows XP computer. One of my SD cards has recently begun to show files with extension .exe (for example DCIM.exe). When I try to open them, it starts Windows Explorer.
When I look at the files in Windows Explorer, they do not have any extension. If I try to rename the folder in the Bridge he says that there is already a folder with that name.
Any suggestions on how to fix this?
You have a virus scanner? There was a 'worm' virus W32. SillyFDC who worked by replacing files by exe files on removable drives. This looks like these symptoms - so it will be worth a check running.
Dave
-
Cannot run any file '.exe '.
I have a virus that will not let me run any file '.exe '. For this reason I can not: open a command box, run any anti-malware programs or install a new download. HE can't even run any kind of diagnostic program to see if it IS really a virus. Y at - it online diagnostic tool, I use (I've tried the eset, but he came up emptyhanded)
Hello
1. what happens when you try to run .exe files?
2. do you get an error message?
I suggest you try to download the Microsoft security scanner and see if you are able to download. If so, then try to run it and check if it helps.
http://www.Microsoft.com/security/scanner/en-us/default.aspx
Otherwise, you can follow the steps in this link and check if that helps:
http://support.Microsoft.com/kb/555067Check if that helps.
-
How to stop the computer to ask what program to use when you try to run a file ".exe"?
Whenever I select a program runs it prompts me to choose what program should I use to run the program. He acts like he can not find the "ini" file which allows to go along with the program. The "ini" file usually defines the settings for the program works. It sets up the lanes for the necessary files can be found. How my computer is, he cannot understand the program that wants to be run because the definitions are not defined. What can I do to fix this broken configuration? All this began after I got rid of a bunch of malicious programs.
It seems that your .exe file associations have been lost. To restore file associations, perform the procedure in the following site specific associations to exe. Make sure to read the Special Summit as note specifically relates to lost .exe associations:
'Windows XP file Association problems'
<>http://www.dougknox.com/XP/file_assoc.htm >HTH,
JW -
Cannot open all programs, particularly .exe files or programs.
Help!
I may have an idea of the problem, but I don't know how to fix it. To give a race to the bottom; I already had utorrent on my computer. I open utorrent and he said that he had a new version/update available, so I've updated (uTorrent) and from there the problems began. In one of the windows it asked me if I wanted to "Open with this program" and "always open programs like this with" (utorrent) is what he asked. From there on, I was not able to open anything.
Even in safe mode, I can't open anything. All I can do is go on the internet. I can't even open the registry, System Restore, the prompt command or anything that might help me to solve the problem. All my programs had tried to open in utorrent, but then I deleted it. Now when I try to open something, for example Microsoft Word, it is saidC:\Program Files\Microsoft Office\Office12\WINWORD. EXE "this file has no program associated with it for performing this action. In the control panel to define Associations, create association. »
Another message that I get when I try to open many other programs or the restoration of the system, the command prompt is:
'Open with '.
Choose the program you want to use to open this file:
File: rstrui.exe
cmd.exeIn the box, it recommended programs:
Internet ExplorerOther programs
I doubt it's a virus I have the total package of moy. I've seen this problem before on a brand new computer I was using utorrent, but I just restarted and it fixed. Not this time! I am really pulling my hair out! Please help me if possible.
Go to http://www.mydigitallife.info/2008/06/22/reset-and-fix-broken-windows-vista-file-ext-and-type-associations-include-exe-com-sys-zip-lnk-folder-drive/ and click the EXE LNK to reset these file associations. That should take care of your program files. I don't know if this will solve the problem with other file types, but at least it's a start.
I hope this helps. I would like to know if other types of files are still screwed up or if this problem fixed them as well.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
I can't open my file regedit.exe.
When I try to open my file regedit.exe, it is said
: editing the registry is disabled by your administrator.How can I fix?RubenLooks like you may have a virus or other malware. Get your updated antivirus program and start safe mode. Note that some viruses can hide from your normal antivirus program, so you really need to scan mode without failure. To enter in Safe Mode when you turn on first, press F8 on every seconds until you get the menu, and then select Safe Mode. Then run a complete system scan.Microsoft has suggestions and offerings tohttp://Windows.Microsoft.com/en-us/Windows7/how-do-I-remove-a-computer-virusModerator Forum Keith has a few suggestions along this line tohttp://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Explorer-has-stopped-working/6ab02526-5071-4DCC-895F-d90202bad8b3If that suits him fine. If this is not the case, use system restore to go back to an earlier date at the beginning of the problem. To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore. Click on the box that says show more restore points.You can check the corrupted system files. Open an administrator command prompt and run SFC if the above does not help. Click START, and then type sfc in the search box, right-click to SFC. EXE, then click on run as administrator. Then from the command prompt, type sfc/scannow.Finally if all else fails, you can look at the rather cryptic system event log. To make, click Start-> Control Panel-> administration-> event viewer tools. Once in Event Viewer system log-click and scroll entries looking for these "error" with indicator see if you can find guidance on where the problem may be.I hope this helps. Good luck. -
I chose to open files by default .exe for internet explore. Now, I can't open chrome, mozilla, Notepad, microsoft, etc., etc. like iexplorer opens when I click on any program. How to return back?
I tried this solution"When you run an .exe on a Windows XP, Windows Vista or Windows 7 computer file, the file can start another program."
microsoft community.The problem I encounter is that I can't even open Notepad or command prompt window window download internet explore opens and I'm stuck there. Please help me get out of this quagmire.Hi Wiillam,
This problem occurs because the icon cache is not updated correctly.
Refer to:
Note: Serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
(http://windows.microsoft.com/en-US/windows7/Back-up-the-registry ) How to back up and restore the registry in Windows. -
Camera Assistant stoped working - CANT RUN CEC_MAIN. EXE
Hello world
just a quick and, hopefully, an easy determination.
I tried to use my webcam and facilities of the camera on my laptop, and whenever I click on it says:"CANNOT RUN CEC_MAIN. EXE PLEASE REINSTALL THIS PROGRAM!
I removed the program and tried to reinstall, but the problem is still happening.
If someone would be kind enough to help me, I appreciate it
Concerning
Craig
Hello
I have no idea what happened, but the solution is simple.
The message has already provided some information what to do to solve this problem.
You need to reinstall the webcam software.First you need to remove/uninstall the old software webcam system
Then go to the page European driver Toshiba and download the webcam software:
http://EU.computers.Toshiba-Europe.comThen, unzip the and run the exe file. Complete the installation, restart the device and retest the cam.
-
We stil run an extensive system of Small Business Accounting. I wonder what others have opted for now his party and support. We have to find a new solution. Recommend something?
Shane
original title: Small Business Accounting
Try: QuickBooks
-
Manually run the dfrgntfs.exe?
Hello.
I'm bored with Windows XP Pro. DfrgNtfs.exe SP3 which works automatically in the background after about 10 minutes of idling. Then I disabled through TweakUI. I tried to manually run the dfrgntfs.exe, but he said "the Disk Defragmenter command-line operation is not supported." Is this the same through % SystemRoot%\System32\dfrg.msc Disk Defragmenter?
Thank you in advance. :)
Similar thread here:
I wonder if the latest post (per DemertisD) could be useful. -
DMM VMWARE 5.2.3 or 5.3 cannot open 'run the task '.
Dear all,
I am facing problem when install VMWare DMM times version 5.2.3 or 5.3 when I want to open "run task" it still shows the treatment and can not go.
I don't know what is happening. I try to reinstall several times but always found same problem even I have change the machine.
I enclose the photo in this issue, so that each of you knows what page errors.
Thank you very much
Hi all
This is a known, problem if you have not configured the entire FQDN of your DMM in the 'Address of the Servlet server' field under ' Digital signs-> settings-> Server Settings.
Last documentation DMM, says it's a mandatory step:
Kind regards
Marco
-
Hi all
I was able to start / run SitesExplorer / ContentServerExplorer.exe (11.1.1.8.0) on Windows 7 64 bit
error starting turning
"This application has failed to start because its side by side configuration is incorrect. "
" Please see the application event log or use the command-line sxstrace.exe for details."
Picture AFP for reference "ContentServerExplorer_error.png".
Where as on my system still Sites runs correctly.
Kind regards
Anoop.
I had not myself but a quick search suggests this may occur if VC ++ and Visual Studio is installed also, causing the SitesExplorer to load one different version of the C++ runtime other than that it provides. Event log Windows could give more details.
Please see
http://www.chiefarchitect.com/support/article/KB-01046/
and
http://support.Microsoft.com/kb/2525435
for suggestions how to solve.
Phil
-
When I try to open my Adobe Pro downloaded on my Mac, I get an error message saying "Cannot open the application"Acrobat_2015_Web_WWMUI.exe"because the Microsoft Windows applications are not considered supported on OS X."
You must download and install the version of Acrobat Mac.
Maybe you are looking for
-
collaboration, PC 800 DM G2: Intel unite error ID 666666
-
Satellite A200-1FL: where can I get all the drivers XP and SATA HDD
Where I can get the controller to sata drives so that it (he, she) can load Xp in Satellite A200-1FL. And another serious issue that when available have all the drivers for this model is only it (he, she) has 2 just now in the Journal official page t
-
Pavilion Elite HPE-110f: 110f hp pavilion CPU fan?
Noisy fan problem, it's the one attached to the radiator. I hear it all the time, but sometimes it will be rev. It's a 80mm. I looked online because I thought I could get just a 80mm fan, but after reading a bit more, I'm nervous about doing things
-
When I try to print from my quickbooks, it prints, even though it will print when I print regular papers.
-
socket InputStream does not get all the data, please help
I've been doing stuff of network on blackberry for quite awhile, but still using the http connection. I have to use the socket for a piece of my application connection, but could not do the work. This code is what I do String url = "socket: / / ' + r