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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:40:01+00:00 2026-05-25T00:40:01+00:00

Its really really hard to explain what i am trying to do, so i

  • 0

Its really really hard to explain what i am trying to do, so i will just explain what is the program i am trying to build.

I am building a Console App in C#.

I need to run it every day at 6:00. I have already built the timer for it, but i need it to get parameter with a “Name” like when you run it into PowerShell. I need to do something like that:

.\run.exe Name

which in my program I need the name in a string, and write with it.. and use it ofc.
i will like to know how to add it, so i can do even:

.\run.exe Name Name2 Name3

Thanks again everyone, you are helping me here alot!

  • 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-25T00:40:01+00:00Added an answer on May 25, 2026 at 12:40 am

    Your Console App entry point may look like

    public static void Main(string[] args) { }
    

    the args array contains all parameters you have passed via command line. The different elements are those that were separated by space.

    So if you call your prog like prog.exe Name, args[0] will contain the value “Name”. args.Length will have the value 1 . If you call prog.exe Name X, args.Length will be 2 and args[1] will be “X”.

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

Sidebar

Related Questions

sorry for the confusing title, its really hard for me to explain what i
I'm gonna trying to explain as good as I can but, it's really hard
Uhh Sorry its really hard to explain but. This is already a string: login_username=Username&login_password=Password&login_submit=Submit
This is a really tricky question to ask as its very hard to explain
This is really stumping me today. I'm sure its not that hard, but I
I'm trying badly to track down a debugger for DOS assembly, it's really hard
Hi stackoverflow coders, I have an app (since the iPhone its really chic to
I'm trying really hard to made this work, but I'm having no luck. I'm
I'm a beginner but have been working really hard to build this application. Working
could someone please explain this java code for me. i find it really hard

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.