Link to home
Start Free TrialLog in
Avatar of garavindbabu
garavindbabu

asked on

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

Avatar of garavindbabu
garavindbabu

ASKER

i tried with system, but it will return only integer value.
ASKER CERTIFIED SOLUTION
Avatar of OnegaZhang
OnegaZhang

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial