Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 665869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:45:21+00:00 2026-05-13T23:45:21+00:00

I am writing for my desktop some application for handling some services. I wrote

  • 0

I am writing for my desktop some application for handling some services.
I wrote in C# an application that calculates something (lets call it cl.exe)
I created a .bat file that starts the cl.exe.
I want to call that .bat file from my javascript so I WShell.Run(**.bat).

2 question:

  1. The javascript program will not
    continue till the cl.exe will end ?
    (It is synchronized ?)
  2. The cl.exe returns a value. How can
    the javascript take it (It is a
    javascript program that call .bat
    file that wrapp the execution of the
    cl.exe) ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:45:22+00:00Added an answer on May 13, 2026 at 11:45 pm

    To make it wait, the 3rd parameter of WShell.Run should be set to true. See http://msdn.microsoft.com/en-us/library/d5fk67ky(VS.85).aspx

    In that case, WShell.Run also returns the return value of the batch file. If I remember correctly, the bat file will return the error code from the last executable run. If not, you can set it with the batch EXIT command

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a desktop application written in Swing developed using Java 1.5. Some
I'm writing a J2SE desktop application that requires one of its components to be
I have a Qt desktop application that works on Linux and Windows. At some
I'm writing a new c# desktop application that is going to allow users to
I am writing a c# winform desktop application that is in contact with a
I'm writing a desktop application to do vector drawing in C++, and considering using
I am writing a desktop and j2me application. I have debug statements in program.
I'm writing a little desktop app that should be able to encrypt a data
I'm writing a facebook desktop application for the first time using the PyFacebook api.
I am writing a Desktop application for professional users using C++. My current design

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.