Try this
Imports System.Security .Principal
Dim CurIdentity As WindowsIdentity
CurIdentity = WindowsIdentity .GetCurrent()
login_name = CurIdentity.Nam e
User Profile
Collapse
-
Exit event not getting triggered for a process
Hi All,
I'm trying to get the exit time of a process. But the event is not getting triggered when i'm closing the process. Below is the code which i have tried. Any help would do.
ProcessStartInf o startInfo = new ProcessStartInf o();
startInfo.FileN ame = "notepad.ex e";
startInfo.Argum ents = @"E:\shared\per data.txt";
startInfo.Worki ngDirectory = @"C:\Temp";... -
Copy & paste data between 2 notepads in C# - Urgent
Hi All,
I'm opening 2 notepads in my windows application. I copy data from one notepad and paste it another notepad. The data should not get pasted into the second notepad.
Can I handle this programatically ?
Any help will do...... -
Hi,
Thankx. But this works only when we are creating, deleting, making changes to a file. I need to display a message which states the name of the file that is being closed....Leave a comment:
-
Getting the file name which is being closed
Hi,
I need to know if there is any possiblity of tracking the name of the file which is currently being closed.
The idea is that: My program will be running in the background. Once a user closes a file, i need to get the name of the file which the user has closed.
No activity results to display
Show More
Leave a comment: