Launch an exe from a form - InfoPath Dev
in

InfoPath Dev

Launch an exe from a form

Last post 07-02-2010 07:18 AM by zz1rgt. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-29-2010 01:54 PM

    • zz1rgt
    • Not Ranked
    • Joined on 05-11-2010
    • Posts 6

    Launch an exe from a form

    Hello.

     I have a pecular need. I need infopath to write a form, one with a unique name on a sharepoint server, and then make a copy of it to another server with a different name. This is not a problem, I then need it to "call" a VB program I wrote that takes the second .XML and manipulates it to suit our needs, but I don't know how to call the .exe from within InfoPath. I don't see a shell or similar command...... I need the call to occur after the data submission is completed.

     Anyone run into this?

    Thanks in advance!

    John

    Filed under: , ,
  • 07-01-2010 05:52 PM In reply to

    Re: Launch an exe from a form

    Hi John,

    You can run an exe by making your form Full Trust and writing code that calls the cmd line but I don't recommend it because it complicates your form.

    Better solution is to use a server-side trigger (perhaps a workflow) that kicks off when the form is submitted. Do you have SharePoint 2007 with workflow? It will require a custom workflow that is installed on the server.

    I'm guessing you need to do this synchronously. If not, you could just set up the VB program to run every hour and check for new records to process.

    Another random idea is to send these XMLs to an email account and add the custom command as part of the Exchange server.

    Or, you could just have a link in your form that calls an ASPX page (on SharePoint) that runs the script and processes the XML - that might be the simplest.

    Hopefully, one of these ideas will provide a spark to get your engines blazing... if not, sorry to be lame!

    Cheers,

    Patrick Halstead
    Project Manager at Qdabra
  • 07-02-2010 06:05 AM In reply to

    • zz1rgt
    • Not Ranked
    • Joined on 05-11-2010
    • Posts 6

    Re: Launch an exe from a form

    Thanks Pat. That gives me some more options.
  • 07-02-2010 07:18 AM In reply to

    • zz1rgt
    • Not Ranked
    • Joined on 05-11-2010
    • Posts 6

    Re: Launch an exe from a form

    OK, I spoke too soon I guess.

     I'm having trouble figuring out how to launch it from a workflow. The workflow options seem to "canned" and don't allow what I need. Any assistance would be great.

     Thanks again.,

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.