Click here to Skip to main content
15,893,722 members
Home / Discussions / C#
   

C#

 
AnswerRe: Type cast Pin
Cracked-Down23-Feb-09 19:10
Cracked-Down23-Feb-09 19:10 
GeneralRe: Type cast Pin
mrithula823-Feb-09 20:02
mrithula823-Feb-09 20:02 
AnswerRe: Type cast Pin
Cracked-Down23-Feb-09 20:16
Cracked-Down23-Feb-09 20:16 
GeneralRe: Type cast Pin
mrithula823-Feb-09 23:40
mrithula823-Feb-09 23:40 
AnswerRe: Type cast Pin
Cracked-Down24-Feb-09 0:13
Cracked-Down24-Feb-09 0:13 
QuestionC# NTier and LINQ Pin
Illegal Operation23-Feb-09 14:31
Illegal Operation23-Feb-09 14:31 
AnswerRe: C# NTier and LINQ Pin
Christian Graus23-Feb-09 14:36
protectorChristian Graus23-Feb-09 14:36 
QuestionSimple, but how can I list flies in a dropdown? Pin
KnotBeer23-Feb-09 9:28
KnotBeer23-Feb-09 9:28 
I have a simple batch file script here that runs during log on and log off that writes a rolling CSV file of each user and which computer they are on. Just for fun, here's what I am running...

LOG ON SCRIPT:
for /f "Tokens=2 Delims=[]" %%i in ('ping -n 1 "%computername%"') do set IP=%%i

rem The following line creates a rolling log file of usage by workstation
echo Log In:	%TIME%	%Date%	%USERNAME% >>\\lsdnas3\Logs\Computers\%COMPUTERNAME%.log

rem The following line creates a rolling log file of usage by user
echo Log In:	%TIME%	%Date%	%COMPUTERNAME%	IP=%IP% >> \\lsdnas3\Logs\Users\%USERNAME%.log


LOG OFF SCRIPT:
for /f "Tokens=2 Delims=[]" %%i in ('ping -n 1 "%computername%"') do set IP=%%i

@rem The fololowing line creates a rolling log file of usage by workstation
@echo Log Off:	%TIME%	%Date%	%USERNAME% >> \\SERVER\Logs\Computers\%COMPUTERNAME%.log

@rem The following line creates a rolling log file of usage by user
@echo Log Off:	%TIME%	%Date%	%COMPUTERNAME%	IP=%IP% >> \\SERVER\Logs\Users\%USERNAME%.log


Well, I want to first choose computer or user logs... Got that figured out (duh) but how do I get a dropdown that will list each file so I can open it as a data source and display it? I know how to open and read the files, and all that boring stuff.

I am sure I will figure it out via a bit of research, but I thought asking might help someone else looking for a similar solution in the future.

Matt
AnswerRe: Simple, but how can I list flies in a dropdown? Pin
Christian Graus23-Feb-09 9:35
protectorChristian Graus23-Feb-09 9:35 
GeneralRe: Simple, but how can I list flies in a dropdown? Pin
KnotBeer23-Feb-09 9:40
KnotBeer23-Feb-09 9:40 
GeneralRe: Simple, but how can I list flies in a dropdown? Pin
Luc Pattyn23-Feb-09 10:28
sitebuilderLuc Pattyn23-Feb-09 10:28 
AnswerRe: Simple, but how can I list flies in a dropdown? Pin
pdohara23-Feb-09 11:08
pdohara23-Feb-09 11:08 
QuestionLINQ / DataGrid / Databinding Pin
honkman23-Feb-09 8:59
honkman23-Feb-09 8:59 
AnswerRe: LINQ / DataGrid / Databinding Pin
Judah Gabriel Himango23-Feb-09 11:45
sponsorJudah Gabriel Himango23-Feb-09 11:45 
Questionusing System.Threading.Tasks; Pin
TerRO_GirL23-Feb-09 8:44
TerRO_GirL23-Feb-09 8:44 
AnswerRe: using System.Threading.Tasks; Pin
Dave Kreskowiak23-Feb-09 9:07
mveDave Kreskowiak23-Feb-09 9:07 
GeneralRe: using System.Threading.Tasks; Pin
TerRO_GirL23-Feb-09 9:13
TerRO_GirL23-Feb-09 9:13 
GeneralRe: using System.Threading.Tasks; Pin
harold aptroot23-Feb-09 14:05
harold aptroot23-Feb-09 14:05 
GeneralRe: using System.Threading.Tasks; Pin
Dave Kreskowiak23-Feb-09 14:15
mveDave Kreskowiak23-Feb-09 14:15 
QuestionRadio Buttons Pin
bar300023-Feb-09 7:23
bar300023-Feb-09 7:23 
AnswerRe: Radio Buttons Pin
0x3c023-Feb-09 7:35
0x3c023-Feb-09 7:35 
GeneralRe: Radio Buttons Pin
bar300023-Feb-09 7:50
bar300023-Feb-09 7:50 
Questionhow to open and play mpeg file using aforge.net Pin
sbs23-Feb-09 7:17
sbs23-Feb-09 7:17 
AnswerRe: how to open and play mpeg file using aforge.net Pin
Christian Graus23-Feb-09 9:09
protectorChristian Graus23-Feb-09 9:09 
QuestionHow to get the directory (folder) on which user has done right click Pin
Abhishek Kulkarni23-Feb-09 6:52
Abhishek Kulkarni23-Feb-09 6:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.