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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:32:37+00:00 2026-05-25T21:32:37+00:00

I have made a HTML parser thanks to the help of this website but

  • 0

I have made a HTML parser thanks to the help of this website but I am running into a new obstacle. I have a webserver that hosts configuration files that I want parsed. Instead of loading my app and inserting the link I want to just pass on a argument to my app directly from the website, for example:

htmlparser.exe http://thisismyconfig.com/config.cfg

And I want the app to load up and run the parse function in my code. It is a .NET application and I think I need to utilize ClickOnce but not too sure. Any help is appreciated, thank you!

UPDATE***

Ok, so with the following code my app does what it should but it faces one last problem (site keeps formatting the code incorrectly):

        private void Form1_Load(object sender, EventArgs e)
        {

            string[] args = Environment.GetCommandLineArgs();
            foreach (string arg in args)
            {
                MyURL = args[1];
                runtimeButton_Click(sender, e);
            }
}

but my URL that I feed it in the argument is:

http://jossc/configtc.aspx?IP=201.73.128.15&m=c

What is going on?

For some reason it removes the last 4 characters: &m=c

  • 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-25T21:32:38+00:00Added an answer on May 25, 2026 at 9:32 pm

    So you’ve got a console app and you want to hand to it the HTTP address to a config file?

    You don’t need ClickOnce for that. Inside your console app, look at Environment.CommandLine to get the command line arguments passed to your app. See MSDN’s Command Line Parsing Tutorial for more info.

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

Sidebar

Related Questions

I have made a html file, but when I upload and test it, I
I have made this webpage, you can check it out here http://www.bettingtowin.net/webcam.html I have
I feel kind of stupid asking this but I have made a few regular
I have made an html wizzard for making order. There are four steps, in
Currently i have made a bar chart from a listbox from this example: http://weblogs.thinktecture.com/cnagel/2011/06/wpf-listbox-as-bar-chart.html
I have never made a blog before. I am proficient with html and css.
I have a grid made using slickgrid on a html page. I want to
I have a slider I made: http://dranz1r.com/index.html When you slide right for example, there
I have a simple nav made up of the following HTML; <div class=inner> <div
I have made a jQuery toggle for a menu that I had in mind.

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.