how to collect all clients log files and show at server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sekharopponnam
    New Member
    • Jan 2013
    • 3

    how to collect all clients log files and show at server?

    Code:
    private void btnlogin_Click(object sender, EventArgs e)
            {
                string dir = "D://Login.hhh";
    
                if (!File.Exists(dir))
                {
                    File.Create(dir);
                }
    
                string filePath = dir;
    
                string s = System.Environment.GetEnvironmentVariable("COMPUTERNAME");
    
                string s1 = getIP();
    
                using (StreamWriter swrObj = new StreamWriter(filePath, true))
                {
                    swrObj.Write(s1 + "|" + s + "|" + Txtusername.Text + "|" + "user logged in on :|" + DateTime.Now.ToShortDateString() + " at " + DateTime.Now.ToShortTimeString());
    
                    swrObj.Write("\t\t");
    
                    swrObj.Write("\t\t");
    
                    swrObj.WriteLine();
    
                    MessageBox.Show("Login success");
                }
            }
    iam using above code to create a log file ita working in a single user application(thi s is in windows not in asp),but how it will work in multiuser environment,i want collect all clients info and show at server ?how to that plz help me any one
    Last edited by Meetee; Jan 2 '13, 06:52 AM. Reason: Use code tags <code/> around your code
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    I guess I'm not completely understanding what you're going for here. Can we get a better explanation of what you're trying to accomplish please :)

    Comment

    • leecorp
      New Member
      • Jan 2013
      • 10

      #3
      "The log Files are created by the Client Application I Hope"

      Then you need to write some code to upload that Log File to server

      But if you don't have the capacity or resource to change the existing code in the application


      Then you have to access the Log File using some other application let's say C# then upload that to the remote server.

      But make sure you have necessary privilege to run those kinds of apps from the client machine.

      Good Day

      Comment

      Working...