Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to run dos command in administrator privilage while in c++ code?

15 views
Skip to first unread message

Yang Luo

unread,
Jan 18, 2016, 8:34:10 AM1/18/16
to
I use dos command "net", need administrator privilage.Now I need put this command into c++ code, I use system() function, like this 'system("net
use S: \\computername\foldername");', So how can I improve dos command excute privilage while running c++ code.

Stephen Wolstenholme

unread,
Jan 19, 2016, 7:25:55 AM1/19/16
to
ShellExecute is usually a good place to start.

Steve

--
Neural Network Software for Windows http://www.npsnn.com

0 new messages