Current location: Hot Scripts Forums » Programming Languages » Windows .NET Programming » Network User Question


Network User Question

Reply
  #1 (permalink)  
Old 12-07-04, 10:45 AM
bwood415 bwood415 is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Network User Question

I have a .NET Windows Service written to watch one of our network drives for any deletions. I am running this service as a user service seeing I do not have access to the servers and have to run it as myself to get it to work. Now in part of this service it is suppose to log who deleted a folder. The problem is that everytime something is deleted it shows that I deleted it even when it was another user. What is the best way to fix this? I have tried everything from System.Net.DNS.GetHostName, to Enviroment.UserName. Any help would me most appreciated.

Billy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-27-05, 04:37 AM
Ruffnekk Ruffnekk is offline
New Member
 
Join Date: Apr 2005
Location: Rotterdam, Netherlands
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
http://www.dotnetbips.com/displayarticle.aspx?id=178

This is an article, describing how to code the service you have made. It also uses the Environment.Username to get the username. Maybe you can get a little help from the way they did it... source code is included on the page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting a question / answer on site markcody PHP 2 11-23-04 02:58 PM
Quick Question for you php guru's Tokahashi PHP 3 04-09-04 01:00 PM
[PHP] Array question UmiSal Script Requests 1 04-05-04 02:52 PM
question and answer software jaydifox C/C++ 0 02-21-04 10:26 AM
Need Epinions-lite system in PHP & MYSQL wali001 Job Offers & Assistance 4 01-12-04 07:02 AM


All times are GMT -5. The time now is 09:18 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.