You are viewing limited content. For full access, please sign in.

Question

Question

how open calc.exe on c# use script workflow

asked on March 21, 2017 Show version history

how open calc.exe on c# use script workflow 9.2

 

 

0 0

Replies

replied on March 21, 2017

The straightforward answer: no.

It is probably not useful at all to try to do this from Workflow. The reasons are explained in Brian's and Cliff's answers. To summarize:

  • The application is launched on a different computer than the one you're logged on.
  • The application is launched with a different Windows user; typically it would be the Windows "Local System" account.
  • You will not be able to see that launched program's window (GUI) even if you log on to the other computer.
  • Because the "Local System" account is typically reserved for non-interactive server applications (those that do not require a human user to operate), it might not even allow applications to open a window (GUI). The application may either be waiting forever for the permission to open a window, or it might simply terminate. http://stackoverflow.com/questions/20068551/how-to-display-application-normally

 

Suggestion: create a custom toolbar button on Laserfiche Windows Client.

Step 1. Open the Options dialog from the menu.

Step 2. Customize the toolbar.

Step 3. Add a new custom toolbar button.

Step 4. Specify the name, action, and icon for the new custom toolbar button. Here, you can launch "calc.exe" by browsing for locally installed applications and configuring the command-line arguments.

 

1 0
replied on March 21, 2017

Process.Start is how one process can launch another in .Net.  Keep in mind that this will start that process on the Workflow server, running within the same Windows session and potentially competing for resources with Workflow.

0 0
replied on March 21, 2017

Nabeel,

Perhaps you can provide additional information about what you are ultimately trying to accomplish.  As Brian states, you can use the .NET framework System.Diagnostics.Process.Start to launch an application from a script activity in Workflow but that application instance is going to open on the Workflow server not on a client workstation.  (Which is probably not what you are intending to happen?)

0 0
replied on March 28, 2017

   Protected Overrides Sub Execute()
            'Write your code here.
            process.start("http://192.168.0.18:5000/sendsms/ ''
        End Sub

it's work 

thank you 

 

0 0
replied on March 28, 2017

This looks like it will open a new browser tab each time it is run.  If you don't clean it up I think you'll run into problems down the road.  If you want your Workflow to send an HTTP request, there is an activity for that.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.