Click here to Skip to main content
15,861,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: USB3 port: Programmatically force it to operate in USB2 mode Pin
Jochen Arndt11-Feb-16 23:01
professionalJochen Arndt11-Feb-16 23:01 
GeneralRe: USB3 port: Programmatically force it to operate in USB2 mode Pin
Leif Simon Goodwin16-Feb-16 3:16
Leif Simon Goodwin16-Feb-16 3:16 
QuestionI this correct? Pin
VISWESWARAN199810-Feb-16 0:00
professionalVISWESWARAN199810-Feb-16 0:00 
AnswerRe: I this correct? Pin
Richard MacCutchan10-Feb-16 0:09
mveRichard MacCutchan10-Feb-16 0:09 
GeneralRe: I this correct? Pin
VISWESWARAN199810-Feb-16 0:40
professionalVISWESWARAN199810-Feb-16 0:40 
GeneralRe: I this correct? Pin
Richard MacCutchan10-Feb-16 1:03
mveRichard MacCutchan10-Feb-16 1:03 
GeneralRe: I this correct? Pin
VISWESWARAN199810-Feb-16 1:28
professionalVISWESWARAN199810-Feb-16 1:28 
GeneralRe: I this correct? Pin
Richard MacCutchan10-Feb-16 1:41
mveRichard MacCutchan10-Feb-16 1:41 
Then it is simply a matter of creating the full command and parameter in a string and passing that string to the system command.
C++
wchar_t sysCommand[128];
swprintf_s(sysCommand, L"attrib %s", store);
system(sysCommand);


See also system, _wsystem[^].
PraiseRe: I this correct? Pin
David Crow10-Feb-16 4:10
David Crow10-Feb-16 4:10 
GeneralRe: I this correct? Pin
Richard MacCutchan10-Feb-16 4:24
mveRichard MacCutchan10-Feb-16 4:24 
GeneralRe: I this correct? Pin
VISWESWARAN199810-Feb-16 4:23
professionalVISWESWARAN199810-Feb-16 4:23 
GeneralRe: I this correct? Pin
David Crow10-Feb-16 4:25
David Crow10-Feb-16 4:25 
GeneralRe: I this correct? Pin
VISWESWARAN199810-Feb-16 4:28
professionalVISWESWARAN199810-Feb-16 4:28 
GeneralRe: I this correct? Pin
David Crow10-Feb-16 4:30
David Crow10-Feb-16 4:30 
GeneralRe: I this correct? Pin
Richard MacCutchan10-Feb-16 4:26
mveRichard MacCutchan10-Feb-16 4:26 
PraiseRe: I this correct? Pin
VISWESWARAN199810-Feb-16 4:30
professionalVISWESWARAN199810-Feb-16 4:30 
GeneralRe: I this correct? Pin
VISWESWARAN199810-Feb-16 7:28
professionalVISWESWARAN199810-Feb-16 7:28 
GeneralRe: I this correct? Pin
Richard MacCutchan10-Feb-16 7:41
mveRichard MacCutchan10-Feb-16 7:41 
GeneralRe: I this correct? Pin
VISWESWARAN199810-Feb-16 8:01
professionalVISWESWARAN199810-Feb-16 8:01 
SuggestionRe: I this correct? Pin
David Crow10-Feb-16 9:59
David Crow10-Feb-16 9:59 
GeneralRe: I this correct? Pin
Richard MacCutchan10-Feb-16 21:56
mveRichard MacCutchan10-Feb-16 21:56 
GeneralRe: I this correct? Pin
VISWESWARAN199811-Feb-16 8:48
professionalVISWESWARAN199811-Feb-16 8:48 
SuggestionRe: I this correct? Pin
David Crow11-Feb-16 9:22
David Crow11-Feb-16 9:22 
GeneralRe: I this correct? Pin
VISWESWARAN199811-Feb-16 9:44
professionalVISWESWARAN199811-Feb-16 9:44 
GeneralRe: I this correct? Pin
David Crow11-Feb-16 9:46
David Crow11-Feb-16 9:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.