Windows Vista Forums

Powershell and DDE?
  1. #1


    thinknew Guest

    Powershell and DDE?

    How do you use DDE in powershell? I'm comfortable with powershell and would
    like to keep it in the family...but if unconventional, what is the easiest or
    traditional method? The background is that I have an oldschool 16-bit
    application that I need to automate. I have visibility of the applications
    DDE documentation and as a first step, am trying to determine how I will
    establish this DDE connection.



    Thoughts?

      My System SpecsSystem Spec

  2. #2


    Bob Landau Guest

    RE: Powershell and DDE?

    I suggest a different route

    1) Search for a DDE client that can be automated using COM automation

    2) Dig up an old version of Visual Basic or if you're comfortable use C or
    MFC.

    I you are really insistent PInvoke does give you access to the Win32 api's
    such as SendMessage (this is how DDE communicates). That along with the
    documentation you already have in theory will allow you to communicate using
    DDE.

    One last note here any .NET language would have the same diffculties

    "thinknew" wrote:

    > How do you use DDE in powershell? I'm comfortable with powershell and would
    > like to keep it in the family...but if unconventional, what is the easiest or
    > traditional method? The background is that I have an oldschool 16-bit
    > application that I need to automate. I have visibility of the applications
    > DDE documentation and as a first step, am trying to determine how I will
    > establish this DDE connection.
    >
    > Thoughts?

      My System SpecsSystem Spec

  3. #3


    Alex K. Angelopoulos Guest

    Re: Powershell and DDE?

    I've never seen anyone even discuss using DDE with PowerShell before, so
    you'll be inventing the "traditional" method. Besides what Bob mentioned,
    here are a couple of avenues to explore.

    (1) .NET-based DDE
    The standard DDE APIs are embedded in Windows (with the exception of the
    NetDDE stuff that started going away with Vista), so there are some wrappers
    out there. You might try using NDDE since it's a .NET component that can be
    loaded and used as an object:
    http://ndde.codeplex.com/

    (2) commandline DDE
    There are supposedly multiple commandline DDE utilities out there, but I
    haven't seen much about them; you'll need to hunt to find them. Try DDE_run
    and CMCDDE. Unfortunately CMCDDE appears to be missing in action from its
    original website.

    "thinknew" <thinknew@xxxxxx> wrote in message
    news:F42BDD80-8C0B-428E-9BD2-A75EF6D7604B@xxxxxx

    > How do you use DDE in powershell? I'm comfortable with powershell and
    > would
    > like to keep it in the family...but if unconventional, what is the easiest
    > or
    > traditional method? The background is that I have an oldschool 16-bit
    > application that I need to automate. I have visibility of the
    > applications
    > DDE documentation and as a first step, am trying to determine how I will
    > establish this DDE connection.
    >
    > Thoughts?

      My System SpecsSystem Spec

Powershell and DDE? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing PowerShell dependent features on W2K8 with PowerShell CTP Greg Wojan PowerShell 14 16 May 2008
when run powershell script as windows service ,powershell fail powershell fail on winodws 2008 PowerShell 6 15 Jan 2008
Powershell Plus - Free for non commercial Use and Powershell Analyzer1.0 released Karl Prosser[MVP] PowerShell 2 12 Dec 2007
Automatic PowerShell Error Parsing in PowerShell Analyzer and PowerShellPlus Karl Prosser[MVP] PowerShell 0 14 Nov 2007
PowerShell Leaders Join Forces and offer a pre-release version of PowerShell for 50% off the retail value klumsy@xtra.co.nz PowerShell 0 19 Jun 2007