executing windows commands from vc++(eg: net user)

hi,

i want to execute the windows API command "net user" from vc++.
i want to store the result in a text file and retreive the home directory value .

eg:

c:\>net user guest
will return information about guest account, from the information i need the home directory field in a VC++ variable.

thanks

LVL 2
garavindbabuAsked:
Who is Participating?
 
garavindbabuAuthor Commented:
i tried with system, but it will return only integer value.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.