6
Answers

need to use some specific files from each folder of a dir.

hi, 
 
I have two directories, and every directories represent the data acquired from a software, with thesame names of folders and files name. i wanna use these files to compare with each other.  
 
What i need is a function or a method, which can get me some files based on their names, one i select the folder.
 
I used FolderBrowseDialog, to select the folder and used openfileDialog to open the files,
but instead of openfiledialog i would need another function that can automatically select particular files of that folder.
 
I had tried Directory.getfiles but can i select the files that i need based on their names(files).any filter that i can use.
 
 
Answers (6)
0
Rahul Kaushik

Rahul Kaushik

NA 383 14.5k 7y
create a session_switch function inside the application,
and along that
use if else case as below
 
if (e.Reason == SessionSwitchReason.SessionLock)
{
Print for unlock 
}
else
if (e.Reason == SessionSwitchReason.SessionUnlock)
{
Print for Login 
}  
 
 
 and use your own define function like tracking the system clicks of the user. Windows open on System.clicks as well as track and store the time when person is doing activity.
 
Track the application open  
 
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 7y
Follow below links that help you:
 
https://vinceavery.wordpress.com/2016/10/26/monitoring-user-activity/ 
 
https://stackoverflow.com/questions/24403654/monitor-user-activities-using-c-sharp 
 
https://channel9.msdn.com/Forums/Sandbox/258841-Coding-4-Fun-Activity-Monitor-C 
 
https://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents(v=vs.110).aspx