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 4020956
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:17:32+00:00 2026-05-20T10:17:32+00:00

I am working on a vb.net project and i have a start and Pause

  • 0

I am working on a vb.net project and i have a “start” and “Pause” Buttons on the FormPost.exe

I am trying to schedule a batch process to run every day in the morning at 4:00 AM.

How can i run a command prompt to execuite FormPost.exe and them click on “start” button, all via command prompt?

Please let me know. 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-20T10:17:33+00:00Added an answer on May 20, 2026 at 10:17 am

    What you can do is this override the OnControlCreateMethod() as follows:

    Public Class Form1
       Public Sub New()
         ' This call is required by the designer.
         InitializeComponent()
    
         ' Add any initialization after the InitializeComponent() call.
    
       End Sub
    
       Protected Overrides Sub OnCreateControl()
          MyBase.OnCreateControl()
          If Environment.CommandLine.Contains("/clickme") Then
             ClickMeButton.PerformClick()
             // ... need to wait here until click event handler has finished, e.g.
             // using synchronization objects
             Close()
          End If
       End Sub
    End Class
    

    If you pass “/clickme” on the command line it will execute the click event and then close the form. If the form is the only one in the application it will terminate.

    Be aware, though, that you will need to add some logic that waits for the click event handler to finish. Try avoid using polling or sleep. Instead try using synchronization objects.

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

Sidebar

Related Questions

On a recent project I have been working on in C#/ASP.NET I have some
I am currently working in a .Net project but from university I have also
I'm trying to use application settings with a C#.NET project I am working on.
I am working with asp.net website project that some of pages need authentication. I
I'm working on a C#/ASP.NET project that has all the javascript files in a
I am working on an ASP.NET project which is physically located at C:\Projects\MyStuff\WebSite2. When
I've just started working on an ASP.NET project which I hope to open source
I'm working on an ASP.NET project using MVP architecture. We would like to use
I am working on a ASP.net project created with local file system settings. I
I've been working on a ASP.NET project that is going to save uploaded files

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.