Sign in to follow this  
Followers 0
brk_h

CDMDDE launching with a cdm file on startup

6 posts in this topic

Hi All, My understanding is that CDMDDE.exe has to be running in the background and also a cdm file has to be already opened in order to communicate with Omron PLC via an Excel VBA script. Is there any way to automatically launch CDMDDE.exe with a .cdm file on startup of the PC? Thanks.

Share this post


Link to post
Share on other sites
Windows task manager and set to automatic on startup? Have not tried it though.

Share this post


Link to post
Share on other sites
I have no problem with launching. The problem is launching with a specific .cdm file. Running CDMDDE.exe with no cdm file open is not doing anything. I'm trying to automate launching with a cdm file to eliminate a step for the operator.

Share this post


Link to post
Share on other sites
Try this: Right click on your.cdm file and choose 'open with' Set the file association to open with CDMDDE.exe Create a shortcut to your .cdm file and drag it to your windows startup folder. Reboot and hope it works. I haven't tested this now but I believe I did something like this years ago. Haven't used DDE links in a long time.

Share this post


Link to post
Share on other sites
Another possibility would be an old fashioned batch file in the stratup folder perhaps. Have not tried it though.

Share this post


Link to post
Share on other sites
Thanks ECSI, that was a great idea and worked really well. Thanks to all who responded.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0