Environment:Win7 64bit,US
Target: copy c:\windows\system32\chklogo.wtlµ½c:\logs ÏÂ
Èç¹ûÊÖ¹¤´ò¿ªcmd,
1. cmdµÄtitleÊÇAdministrator:C:\windows\system32\cmd.exe
2. µ±Ç°¹¤×÷Ŀ¼c:\Users\username\>
3. ÊäÈëcopy c:\windows\system32\chk*.* c:\logs »Ø³µ
Îļþcopy ÕýÈ·
Èç¹û´´½¨c#ÏîÄ¿,code ÈçÏÂ
µÚÒ»ÖÖ·½·¨
System32.Diagnostics.Process p=new System.Diagnostics.Process();
p.StartInfo.FileName=@"cmd.exe";
p.StartInfo.Arguments=@"/k copy c:\windows\system32\chk*.* c:\logs";
p.StartInfo.CreateNoWindow=false; //ÎÒÏ£ÍûÄÜ¿´µ½Çé¿ö
p.StartInfo.WindowStyleSystem.Diagnostics.ProcessWindowStyle.Normal;
p.Start();
p.waitForExit();
½á¹û
µ¯³öÒ»¸öcmd´°¿Ú,titleÊÇAdministrator:C:\windows\System32\cmd.exe
ûÓÐcopyÎÒÉú³ÉµÄchklogo.wtl.Ö»copyÁËϵͳ×Ô´øµÄchkdsk.exeÓëchkntfs.exe
µÚ¶þÖÖ·½·¨
codeͬÉÏ,µ«ÊÇÔÚp.WaitForExit()´¦ÉèÖÃBreakPoint
ÔËÐÐ,ÕâʱÔÚµ¯³öµÄ´°¿ÚÖÐÈ˹¤ÊäÈëcopy c:\windows\system32\chk*.* c:\logs
½á¹ûͬÉÏ
µÚÈýÖÖ·½·¨
System32.Diagnostics.Process p=new System.Diagnostics.Process();
p.StartInfo.FileName=@"cmd.exe";
p.StartInfo.Arguments=@"/k c:\windows\system32\cmd.exe"; //³¢ÊÔÓùÜÀíԱȨÏÞÊÔ,ÄѵÀÎÒ×Ô¼ºÃ»ÓйÜÀíԱȨÏÞ??ÎÒÖ»ÓÐÒ»¸öÓû§
p.StartInfo.RedirectStandardInput=true;
p.StartInfo.RedirectStandardOutput=true;
Ïà¹ØÎÊ´ð£º
ÓÃc/c++¶¨Î»É¾³ýÒ»ÐеÄÎÊÌâ¡£
ÎÊÌâ±³¾°£º
ËùÐèÊý¾ÝÏ൱´ó¡£aÓëbÎļþ¾ùΪһ×éÎļþ£¨a1£¬a2¡£¬b1£¬b2¡£©£¬aÎļþÓÐ×î´óÊý¾ÝÐÐÊý£¨Èç5000£©£¬ÒÔÐеÄÐÎʽ£¬´ÓaÎļþÖжÁÈ¡Êý¾Ý£¬½«aÖв»ÄÜ´¦ÀíµÄÊý¾Ý·ÅÔÚbÎ ......
ÎÊÌâÒ»£º
ÔÚ¶ÔÆëΪ4µÄÇé¿öÏÂ
struct BBB
{
long num£»
char *name;
short int data;
char ha;
short ba[5];
}*p;
p=0x1000000;
p+0x200=____;
(Ulong)p+0x200=____;
(char*)p+0x200=____;
¼ÙÉèÔÚ32λC ......
#include"stdio.h"
#include"stdlib.h"
void ContrTwo(char i)
{
char str1[8];
itoa(i,str1,2);
printf("%s",str1);
}
unsigned char leftRot(char str,int i);
unsign ......
#include "stdio.h"
void main()
{
int *p;
int a[10]={0,1,2,3,4,5,6,7,8,9};
int k=0;
p=a;
for(int i=0;i<10;i++,p ......
SHIFT¼ÓF10ÓëÄǸö¼üÓÒctrl±ßÉϵÄÄǸö¼ü¹¦ÄÜÒ»Ñù£¬ÏëÆÁÕâ¸ö
µ«²»ÖªÒªÔõôдÄǸö×éºÏ¼ü£¡
ÓÐûÄĸö´óÏÀ·ÅÒ»¶ÎÕâ¸öµÄ´úÂë»òдһ¶Î
http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html
......