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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:06:11+00:00 2026-06-04T23:06:11+00:00

I would like to create a command line application in C# where users could

  • 0

I would like to create a command line application in C# where users could use it as a script language. By this I mean upon the first run of the application, an instance of an object is created, and persists throughout the rest of the session. Any subsequent calls of the application from the command line use parameters set previously.

For instance if you had an application called woo.exe, which created an object called ball. Ball has a method called changeColor which accepts a string as input. Our command line call for changeColor would be.

woo changeColor red

Now if ball had a method getColor() which returned the color of the ball object, calling the command

woo getColor
Your color is red (output that comes from Console.WriteLine(“Your color is {0}”, color))

This way the user could create batch files to run methods on a single object through multiple calls of the program.

Your help is greatly appreciated.

  • 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-06-04T23:06:12+00:00Added an answer on June 4, 2026 at 11:06 pm

    One possible way would be:

    • call woo.exe, create object
    • now woo.exe finishes, right? Serialize object to disk in any convenient format (I would choose XML as it is expressive and easy to parse in C#)
    • woo.exe is called again with new parameters. Load object, make changes, serialize again.

    Another possible way:

    • woo.exe is loaded first time, creates object and waits.
    • another instance is loaded, find first instance via inter-process communications (pipes or local network) and sends command (calls method) to it.
    • first instance act like a server, holds the objects and executes changes to it.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create a command line application that accepts a script F-Script
I would like to create (or use, if one already exists) a command-line based
I would like to execute arbitrary command-line application and read its standard output as
I'm writing a command line application and would like the user to be able
Say that I have simple command line application, that looks something like this #
I would like to create a new unix command to automatically list the contents
I would like to create a ruby script that I can run mysql commands
I would like to create multiple objects/instances in a loop. how to do this?
I would like to create a batch file to start one IIS application, and
I would like to create a Makefile which also creates a simple script for

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.