[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2006-04-25
5
Medium Priority
?
236 Views
Last Modified: 2010-04-24
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

0
Comment
Question by:garavindbabu
2 Comments
 
LVL 2

Author Comment

by:garavindbabu
ID: 16533390
i tried with system, but it will return only integer value.
0
 
LVL 12

Accepted Solution

by:
OnegaZhang earned 200 total points
ID: 16541085
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question