¼ÐÃD:
[¤À¨É]
§Q¥Î XCOPY ©M§å¦¸ÀÉ .BAT ¥\¯à°µ³Æ¥÷
[¥´¦L¥»¶]
§@ªÌ:
jslin
®É¶¡:
2011-1-20 15:14
¼ÐÃD:
§Q¥Î XCOPY ©M§å¦¸ÀÉ .BAT ¥\¯à°µ³Æ¥÷
§Q¥Î XCOPY ©M§å¦¸ÀÉ .BAT ¥\¯à°µ³Æ¥÷
rem ----- ÀɮצWºÙ : BACKUP.BAT -------------------------------------------------------
rem ----- ¥Î³~ : §Q¥Î XCOPY ©M .BAT ¥\¯à°µ³Æ¥÷ ----------------------------------------
rem ----- ±N BACKUP.BAT ¥[¤J ¨t²Î±Æµ{ ( ¥i¥H¤â°Ê¥[¤J [¶}©l][µ{¦¡¶°][±Ò°Ê] ¤¤ ) ------
rem at 23:00 /every:s,m,t,w,th,f,sa "d:\LU\BACKUP.bat"
rem ----- XCOPY ¥Îªk ¥i¥Î "XCOPY /?" ¬d¸ß ---------------------------------------------
rem XCOPY ®t²§³Æ¥÷±`¥Î°Ñ¼Æ
rem /D:m-d-y ½Æ»s¦b«ü©w¤é´Á·í¤Ñ©Î¤§«áµo¥ÍÅܧóªºÀɮסC¦pªG¨S¦³µ¹¤é´Á¡A¥u½Æ»s¨º¨Ç¨Ó·½Àɮפé´Á¤ñ¥ØªºÀɮפé´Á¬°·sªºÀɮסC
rem /H ®É½Æ»sÁôÂÃÀÉ©M¨t²ÎÀÉ¡C
rem /I ¦pªG¥Øªº¤£¦s¦b¥B½Æ»s¤@Ó¥H¤WªºÀɮתº¸Ü¡A´N°²³]«ü©wªº¥Øªº¤@©w¬O¥Ø¿ý¡C
rem /S ½Æ»s¨Cӥؿý¤Î¨ä¥]§tªº¤l¥Ø¿ý¡A¤£½Æ»sªÅ¥Ø¿ý¡C
rem /E ½Æ»s¨Cӥؿý¤Î¨ä¥]§tªº¤l¥Ø¿ý¡A§t½Æ»sªÅ¥Ø¿ý¡C/S »P /E ¬Û¦P¡A¯à°÷¥Î¨Óקï /T¡C
rem /Y ¤£n´£¥Ü±z½T©w¬O§_nÂл\¤@Ó¤w¸g¦s¦bªºÀɮסC
rem ----- ¼W¥[ route ¸ê®Æ, ¼o°£ ---------------
rem route add 140.127.177.17 192.168.0.2
rem ----- ±N¶}©l³Æ¥÷®É¶¡¼g¤J log ¬ö¿ý¤¤ -----------------------------------------------------------------------
rem %date% ªí¥Ü¤é´ÁÀô¹ÒÅܼÆ, %date:~0,4% ªí¥Ü ¤é´ÁÀô¹ÒÅܼƤ¤±q²Ä 0 Ó¦ì¸m§ì¥X 4 Ó¦r
echo %date:~0,4%%date:~5,2%%date:~8,2% ºô¶¸ê®Æ³Æ¥÷¬ö¿ýÀÉ > D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
echo ©l³Æ¥÷®É¶¡ >> D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
TIME /T >> D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
rem ------ [§¹¾ã³Æ¥÷] ±Nºô¯¸¸ê®Æ³Æ¥÷¨ì¥H¤é´Á¬°¥Ø¿ý¦WºÙ ªº¥Ø¿ý¤¤ --------------------------------------------------------
rem xcopy c:\inetpub D:\Backup\%date:~0,4%%date:~5,2%%date:~8,2% /h /i /s /k /o /y >> D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
rem ----- [®t²§³Æ¥÷] ³Æ¥÷ MSN ªí±¡²Å¸¹, §ï¦W¦¨ .gif ¤è«K¥[¬Ý, §ó¦W¥¢±Ñªí¥Ü«½Æ, ¥i§R°£
XCOPY "C:\Documents and Settings\lu\Application Data\Microsoft\MSN Messenger\1061698994\CustomEmoticons" "D:\CustomEmoticons" /D /H /I /S /Y
REN D:\CustomEmoticons\*.dat *.gif
DEL D:\CustomEmoticons\*.dat
rem ------ [®t²§³Æ¥÷] ³Æ¥÷ MSN ªí±¡²Å¸¹ ¨ì File Server ªºÓ¤H³Æ¥÷°Ï
XCOPY D:\CustomEmoticons Z:\CustomEmoticons\ /D /H /I /S /Y
rem ------ [®t²§³Æ¥÷] ³Æ¥÷ §Úªº³Ì·R ¨ì¦Û¤vªº D: ºÏºÐ --------------------------------------------------------------
rem ¨Ï¥Î %USERPROFILE% Àô¹ÒÅܼÆ, ¥¦¥Nªí "C:\Documents and Settings\(¨Ï¥ÎªÌµn¤J±b¸¹)"
XCOPY %USERPROFILE%\Favorites "z:\Favorites\" /D /H /I /S /Y
rem XCOPY "C:\Documents and Settings\lu\Favorites" "D:\Favorites\" /D /H /I /S /Y
rem ------ [®t²§³Æ¥÷] ³Æ¥÷ Outlook Express 6.x ³q°T¿ý ¨ì¦Û¤vªº D: ºÏºÐ -------------------------------------------------------------------
XCOPY "%USERPROFILE%\Application Data\Microsoft\Address Book" "D:\Address Book\" /D /H /I /S /Y
rem XCOPY "C:\Documents and Settings\lu\Application Data\Microsoft\Address Book" "D:\Address Book\" /D /H /I /S /Y
rem ------ [®t²§³Æ¥÷] ³Æ¥÷ §Úªº³Ì·R ¨ì File Server ªºÓ¤H³Æ¥÷°Ï -----------------------------------------------------------
XCOPY %USERPROFILE%\Favorites "z:\Favorites\" /D /H /I /S /Y
rem XCOPY "C:\Documents and Settings\lu\Favorites" "z:\Favorites\" /D /H /I /S /Y
rem ------ [®t²§³Æ¥÷] ³Æ¥÷ Outlook Express 6.x ³q°T¿ý ¨ì File Server ªºÓ¤H³Æ¥÷°Ï -----------------------------------------------------------
XCOPY "%USERPROFILE%\Application Data\Microsoft\Address Book" "z:\Address Book\" /D /H /I /S /Y
rem XCOPY "C:\Documents and Settings\lu\Application Data\Microsoft\Address Book" "z:\Address Book\" /D /H /I /S /Y
rem ----- [À£ÁY§¹¾ã³Æ¥÷] ±N D:\lu ¥Î WinRAR À£ÁY©ñ¦b d:\lu.rar ©Î d:\¤é´Á.rar ----------------------
rem WinRar ¬O°Ó·~³nÅé, ºô¶} http://www.rarsoft.com/
rem c:\progra~1\winrar\rar a -r d:\lu.rar d:\lu\*
rem c:\progra~1\winrar\rar a -r d:\%date:~0,4%%date:~5,2%%date:~8,2%.rar d:\lu\*
rem "C:\Program Files\WinRar\rar a -r d:\%date:~0,4%%date:~5,2%%date:~8,2%.rar d:\lu\*
rem ----- [À£ÁY§¹¾ã³Æ¥÷] ±N D:\lu ¥Î 7-zip À£ÁY ----------------------
rem 7-Zip ¬O§K¶O³nÅé, ºô¶} http://www.7-zip.org/
rem "C:\program Files\7-zip\7z" a -r c:\%date:~0,4%%date:~5,2%%date:~8,2%.7z d:\lu\*.*
rem À£ÁY¦¨¬° .zip ®æ¦¡
rem "C:\program Files\7-zip\7z" a -r -tzip c:\%date:~0,4%%date:~5,2%%date:~8,2%.zip d:\lu\*.*
rem ----- ®t²§³Æ¥÷, ²§°ÊÀɮ׿é¥X¨ì 1.log -----
rem XCOPY D:\LU Z:\LU\ /D /H /I /S /Y >> c:\1.log
XCOPY D:\LU Z:\LU\ /D /H /I /S /Y
rem ------ ³Æ¥÷ Outlook «H¥ó -------------------------------------------------
rem echo ½Ð¥ýÃö³¬ Outlook , §_«h Outlook «H¥óµLªk³Æ¥÷
rem pause
XCOPY "D:\Outlook" "z:\Outlook\" /D /H /I /S /Y
rem ------ ³Æ¥÷ hosts ÀÉ®× -------------------------------------------------
XCOPY C:\WINDOWS\system32\drivers\etc\hosts z:\ /D /H /I /S /Y
rem ------ ¿é¥X³Æ¥÷§¹¦¨®É¶¡ -----------------------------------------------
echo µ²§ô³Æ¥÷®É¶¡ >> D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
TIME /T >> D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
½Æ»s¥N½X
§@ªÌ:
s_chen
®É¶¡:
2011-2-26 00:32
¤U¸ü¸Õ¥Î¬Ý¬Ý¡A·PÁ§Aªº¤À¨É¡I
§@ªÌ:
vackbin
®É¶¡:
2011-3-30 11:08
¤U¸ü¬ã¨s¬Ý¬Ý¡A·PÁ¤j¤jªº¤À¨É~~
§@ªÌ:
groover
®É¶¡:
2011-12-18 13:46
«Ü¼F®`, ¼g±o³o»òªø, ¤U¸ü¨Ó¸Õ¸Õ
§@ªÌ:
198188
®É¶¡:
2024-7-12 12:39
¦^´_
1#
jslin
[attach]37812[/attach]
½Ð°Ý¦pªG¥u¬O³Æ¥÷¬YÓFolder ùتº«ü©wªº¤@Ó¤å¥ó¡A¦pªG¾Þ§@¡H¦p¤W¹Ï
1¡^§Ú¹Á¸Õ¤U±¤½¦¡¡AµLªk¹B¦æ¡C
@ECHO ON
ECHO Copy completed!
xcopy S:\Access\Accounting Data ASN.accdb M:\Public\Peter /D/K/E/Y/C/I/H
PAUSE
2¡^§Ú¹Á¸Õ¤U±¤½¦¡¡A¥i¥H¹B¦æ¡A¦ý¬O´N³Æ¥÷¾ãÓFolderùرªº¤å¥ó¡C
@ECHO ON
ECHO Copy completed!
xcopy S:\Access\*¡C* M:\Public\Peter /D/K/E/Y/C/I/H
PAUSE
Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)