|
|
DOS指令in MFC Dialog
在DOS下可以?绦
dir /b/s>a.txt
??ir的?果??虻?n案a.txt
我想在Dialog上加一??按?,按下???按?就??绦?quot;dir /b/s>a.txt"
可是我用spawnl?ShellExecute都不行,是?法????
void CTest0705DirDlg::OnButton1()
{
// TODO: Add your control notification handler code here
spawnl( _P_WAIT ,"dir"," /b/s>a.txt",NULL);
ShellExecute( NULL, "open", "dir", "/b/s>a.txt", "", SW_SHOWNORMAL);
}
|
|