Try removing the last (Bold red) backslash and then run the commandCode:cmd /C "net localgroup > C:\gList.txt\"
Printable View
Try removing the last (Bold red) backslash and then run the commandCode:cmd /C "net localgroup > C:\gList.txt\"
sorry...copy&past failure :S
the cmd will read:Code:strcpy_s(buffer, sizeof(buffer), "cmd /C \"net localgroup > C:\\gList.txt\"");
Why wont it work?Quote:
cmd /C "net localgroup > C:\gList.txt"
hi guys!
i resolved the problem...
it's all about authentication.
i have to insert my windows admin authentication in the service properties of my server application so that it can run the app in admin mode.
So i did it, and now i can run that command :D
Regardless of anything else...
Is not right...Quote:
cmd /C "net localgroup > C:\gList.txt"
'\\'