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

    From Stephen Wolstenholme@21:1/5 to youngluoyang@gmail.com on Tue Jan 19 12:25:52 2016
    On Mon, 18 Jan 2016 05:34:08 -0800 (PST), Yang Luo
    <youngluoyang@gmail.com> wrote:

    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.

    ShellExecute is usually a good place to start.

    Steve

    --
    Neural Network Software for Windows http://www.npsnn.com
    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)