Hello
I am trying to write a program that accesses the NT command: net user. I want to produce a list of users and then filter results by date last logged onto our network so I can check through for user ID's that have not been active for a certain period of time.
Can anyone tell me how I can access a cmd.exe or net.exe command from a C++ program, i.e. tell C++ to enter the command:
net user /domain >>c:\textfile.txt
Thanks for your help.
Dan
I am trying to write a program that accesses the NT command: net user. I want to produce a list of users and then filter results by date last logged onto our network so I can check through for user ID's that have not been active for a certain period of time.
Can anyone tell me how I can access a cmd.exe or net.exe command from a C++ program, i.e. tell C++ to enter the command:
net user /domain >>c:\textfile.txt
Thanks for your help.
Dan