摘要:
执行windows指令: BOOL ExecDosCmd(char cmd[1024]) { SECURITY_ATTRIBUTES sa; HANDLE hRead,hWrite; sa.nLength = sizeof(SECURITY_ATTRIBUTES); sa.lpSecurityDes 阅读全文
摘要:
1、隐藏盘符: //新建注册表,隐藏X盘符 int regeditme() { HKEY hkey; DWORD dwLastError= 8388608;//隐藏X盘2^25 J:2^9=512 X:盘符与挂载的盘符一一对应 DWORD dwordlength = sizeof(DWORD);// 阅读全文
摘要:
1、win7挂载CIFS共享至Z盘指令(用户名:test,密码:123456): net use Z: \\192.168.8.63\ygcd\duanxiuwei 123456 /USER:test /PERSISTENT:YES 2、解挂所有: net use * /del /y 阅读全文