473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

Expand|Select|Wrap|Line Numbers
  1. private void btnlogin_Click(object sender, EventArgs e)
  2.         {
  3.             string dir = "D://Login.hhh";
  4.  
  5.             if (!File.Exists(dir))
  6.             {
  7.                 File.Create(dir);
  8.             }
  9.  
  10.             string filePath = dir;
  11.  
  12.             string s = System.Environment.GetEnvironmentVariable("COMPUTERNAME");
  13.  
  14.             string s1 = getIP();
  15.  
  16.             using (StreamWriter swrObj = new StreamWriter(filePath, true))
  17.             {
  18.                 swrObj.Write(s1 + "|" + s + "|" + Txtusername.Text + "|" + "user logged in on :|" + DateTime.Now.ToShortDateString() + " at " + DateTime.Now.ToShortTimeString());
  19.  
  20.                 swrObj.Write("\t\t");
  21.  
  22.                 swrObj.Write("\t\t");
  23.  
  24.                 swrObj.WriteLine();
  25.  
  26.                 MessageBox.Show("Login success");
  27.             }
  28.         }
iam using above code to create a log file ita working in a single user application(this 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
Jan 2 '13 #1
2 1901
PsychoCoder
465 Expert Mod 256MB
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 :)
Jan 3 '13 #2
leecorp
10
"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
Jan 15 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Murugavel | last post by:
Hi, We maintain a seperate server for files which are uploaded by the user(Clients). We run our site in Production server,we need to Keep our uploaded files in our file server. we use...
1
by: Sarah | last post by:
Hi, Can someone please tell me if there's a way to copy image files from one server to another using ASP and FSO? Or perhaps some other way to do it? I'm trying to collect information on...
1
by: Green | last post by:
Hi, I had a question about how to copy files from server to server on the same LAN. Basically, i need to copy files from "develope server" to the "test server", then eventually to the "production...
7
by: Larry Woods | last post by:
I don't see the pattern. I have a couple of solutions that I acquired from someone else. When I load these, I see the .vbproj and .vbproj.user files in the Solution Explorer. BUT, when I create...
1
by: Jason_Schaitel | last post by:
In Query Analyzer I could go to the Query menu and select Show Server Trace and it would give me trace information with duration, CPU, Reads and Writes cost. I have been using SQL Server 2005 for...
1
by: joe | last post by:
Any articles relating with Uploading images files to server and resize the image by asp.net 2.0
0
by: remya1000 | last post by:
how can i send a new file to a server using FTP in VB.NET. i need to try sending new files to server using FTP. after sending i can delete from server,rename,update the file etc. first i need...
1
by: rn5a | last post by:
Other than creating a custom component or purchasing one, isn't there any other way by which users can upload images/files from their local machines/hard disks to a remote server? Doesn't ASP have...
1
by: BibhuAshish | last post by:
Hi, I am using struts 2. I need to have a clock ticking every second in my webpage to show server time. I do not want to refresh my whole page every second and i do not want to use applet. Now...
7
by: sandeepk84 | last post by:
Hi all... I have file upload option in my web application. I use Struts 2. I wanted to show a preview of the uploaded file to the user. The uploaded file can be of any type like...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.