ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[¤À¨É] §Q¥Î XCOPY ©M§å¦¸ÀÉ .BAT ¥\¯à°µ³Æ¥÷

[¤À¨É] §Q¥Î XCOPY ©M§å¦¸ÀÉ .BAT ¥\¯à°µ³Æ¥÷

§Q¥Î XCOPY ©M§å¦¸ÀÉ .BAT ¥\¯à°µ³Æ¥÷
  1. rem ----- ÀɮצWºÙ : BACKUP.BAT -------------------------------------------------------
  2. rem ----- ¥Î³~ : §Q¥Î XCOPY ©M .BAT ¥\¯à°µ³Æ¥÷ ----------------------------------------

  3. rem ----- ±N BACKUP.BAT ¥[¤J ¨t²Î±Æµ{ ( ¥i¥H¤â°Ê¥[¤J [¶}©l][µ{¦¡¶°][±Ò°Ê] ¤¤ ) ------
  4. rem at 23:00 /every:s,m,t,w,th,f,sa "d:\LU\BACKUP.bat"

  5. rem ----- XCOPY ¥Îªk ¥i¥Î "XCOPY /?" ¬d¸ß ---------------------------------------------
  6. rem XCOPY ®t²§³Æ¥÷±`¥Î°Ñ¼Æ
  7. rem /D:m-d-y  ½Æ»s¦b«ü©w¤é´Á·í¤Ñ©Î¤§«áµo¥ÍÅܧóªºÀɮסC¦pªG¨S¦³µ¹¤é´Á¡A¥u½Æ»s¨º¨Ç¨Ó·½Àɮפé´Á¤ñ¥ØªºÀɮפé´Á¬°·sªºÀɮסC
  8. rem /H        ®É½Æ»sÁôÂÃÀÉ©M¨t²ÎÀÉ¡C
  9. rem /I        ¦pªG¥Øªº¤£¦s¦b¥B½Æ»s¤@­Ó¥H¤WªºÀɮתº¸Ü¡A´N°²³]«ü©wªº¥Øªº¤@©w¬O¥Ø¿ý¡C
  10. rem /S        ½Æ»s¨C­Ó¥Ø¿ý¤Î¨ä¥]§tªº¤l¥Ø¿ý¡A¤£½Æ»sªÅ¥Ø¿ý¡C
  11. rem /E        ½Æ»s¨C­Ó¥Ø¿ý¤Î¨ä¥]§tªº¤l¥Ø¿ý¡A§t½Æ»sªÅ¥Ø¿ý¡C/S »P /E ¬Û¦P¡A¯à°÷¥Î¨Ó­×§ï /T¡C
  12. rem /Y        ¤£­n´£¥Ü±z½T©w¬O§_­nÂл\¤@­Ó¤w¸g¦s¦bªºÀɮסC

  13. rem ----- ¼W¥[ route ¸ê®Æ, ¼o°£ ---------------
  14. rem route add 140.127.177.17 192.168.0.2

  15. rem ----- ±N¶}©l³Æ¥÷®É¶¡¼g¤J log ¬ö¿ý¤¤ -----------------------------------------------------------------------
  16. rem %date% ªí¥Ü¤é´ÁÀô¹ÒÅܼÆ, %date:~0,4% ªí¥Ü ¤é´ÁÀô¹ÒÅܼƤ¤±q²Ä 0 ­Ó¦ì¸m§ì¥X 4 ­Ó¦r
  17. echo %date:~0,4%%date:~5,2%%date:~8,2% ºô­¶¸ê®Æ³Æ¥÷¬ö¿ýÀÉ > D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
  18. echo ©l³Æ¥÷®É¶¡ >> D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
  19. TIME /T >> D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log

  20. rem ------ [§¹¾ã³Æ¥÷] ±Nºô¯¸¸ê®Æ³Æ¥÷¨ì¥H¤é´Á¬°¥Ø¿ý¦WºÙ ªº¥Ø¿ý¤¤ --------------------------------------------------------
  21. 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

  22. rem ----- [®t²§³Æ¥÷] ³Æ¥÷ MSN ªí±¡²Å¸¹, §ï¦W¦¨ .gif ¤è«K¥[¬Ý, §ó¦W¥¢±Ñªí¥Ü­«½Æ, ¥i§R°£
  23. XCOPY "C:\Documents and Settings\lu\Application Data\Microsoft\MSN Messenger\1061698994\CustomEmoticons" "D:\CustomEmoticons" /D /H /I /S /Y
  24. REN D:\CustomEmoticons\*.dat *.gif
  25. DEL D:\CustomEmoticons\*.dat

  26. rem ------ [®t²§³Æ¥÷] ³Æ¥÷ MSN ªí±¡²Å¸¹ ¨ì File Server ªº­Ó¤H³Æ¥÷°Ï
  27. XCOPY D:\CustomEmoticons Z:\CustomEmoticons\ /D /H /I /S /Y

  28. rem ------ [®t²§³Æ¥÷] ³Æ¥÷ §Úªº³Ì·R ¨ì¦Û¤vªº D: ºÏºÐ --------------------------------------------------------------
  29. rem ¨Ï¥Î %USERPROFILE% Àô¹ÒÅܼÆ, ¥¦¥Nªí "C:\Documents and Settings\(¨Ï¥ÎªÌµn¤J±b¸¹)"
  30. XCOPY %USERPROFILE%\Favorites "z:\Favorites\" /D /H /I /S /Y
  31. rem XCOPY "C:\Documents and Settings\lu\Favorites" "D:\Favorites\" /D /H /I /S /Y

  32. rem ------ [®t²§³Æ¥÷] ³Æ¥÷ Outlook Express 6.x ³q°T¿ý ¨ì¦Û¤vªº D: ºÏºÐ -------------------------------------------------------------------
  33. XCOPY "%USERPROFILE%\Application Data\Microsoft\Address Book" "D:\Address Book\" /D /H /I /S /Y
  34. rem XCOPY "C:\Documents and Settings\lu\Application Data\Microsoft\Address Book" "D:\Address Book\" /D /H /I /S /Y

  35. rem ------ [®t²§³Æ¥÷] ³Æ¥÷ §Úªº³Ì·R ¨ì File Server ªº­Ó¤H³Æ¥÷°Ï -----------------------------------------------------------
  36. XCOPY %USERPROFILE%\Favorites "z:\Favorites\" /D /H /I /S /Y
  37. rem XCOPY "C:\Documents and Settings\lu\Favorites" "z:\Favorites\" /D /H /I /S /Y

  38. rem ------ [®t²§³Æ¥÷] ³Æ¥÷ Outlook Express 6.x ³q°T¿ý ¨ì File Server ªº­Ó¤H³Æ¥÷°Ï -----------------------------------------------------------
  39. XCOPY "%USERPROFILE%\Application Data\Microsoft\Address Book" "z:\Address Book\" /D /H /I /S /Y
  40. rem XCOPY "C:\Documents and Settings\lu\Application Data\Microsoft\Address Book" "z:\Address Book\" /D /H /I /S /Y

  41. rem ----- [À£ÁY§¹¾ã³Æ¥÷] ±N D:\lu ¥Î WinRAR À£ÁY©ñ¦b d:\lu.rar ©Î d:\¤é´Á.rar ----------------------
  42. rem WinRar ¬O°Ó·~³nÅé, ºô¶} http://www.rarsoft.com/
  43. rem c:\progra~1\winrar\rar a -r d:\lu.rar d:\lu\*
  44. rem c:\progra~1\winrar\rar a -r d:\%date:~0,4%%date:~5,2%%date:~8,2%.rar d:\lu\*
  45. rem "C:\Program Files\WinRar\rar a -r d:\%date:~0,4%%date:~5,2%%date:~8,2%.rar d:\lu\*

  46. rem ----- [À£ÁY§¹¾ã³Æ¥÷] ±N D:\lu ¥Î 7-zip À£ÁY ----------------------
  47. rem 7-Zip ¬O§K¶O³nÅé, ºô¶} http://www.7-zip.org/
  48. rem "C:\program Files\7-zip\7z" a -r c:\%date:~0,4%%date:~5,2%%date:~8,2%.7z d:\lu\*.*
  49. rem À£ÁY¦¨¬° .zip ®æ¦¡
  50. rem "C:\program Files\7-zip\7z" a -r -tzip c:\%date:~0,4%%date:~5,2%%date:~8,2%.zip d:\lu\*.*

  51. rem ----- ®t²§³Æ¥÷, ²§°ÊÀɮ׿é¥X¨ì 1.log -----
  52. rem XCOPY D:\LU Z:\LU\ /D /H /I /S /Y >> c:\1.log
  53. XCOPY D:\LU Z:\LU\ /D /H /I /S /Y

  54. rem ------ ³Æ¥÷ Outlook «H¥ó -------------------------------------------------
  55. rem echo ½Ð¥ýÃö³¬ Outlook , §_«h Outlook «H¥óµLªk³Æ¥÷
  56. rem pause
  57. XCOPY "D:\Outlook" "z:\Outlook\" /D /H /I /S /Y

  58. rem ------ ³Æ¥÷ hosts ÀÉ®× -------------------------------------------------
  59. XCOPY C:\WINDOWS\system32\drivers\etc\hosts z:\ /D /H /I /S /Y

  60. rem ------ ¿é¥X³Æ¥÷§¹¦¨®É¶¡ -----------------------------------------------
  61. echo µ²§ô³Æ¥÷®É¶¡ >> D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
  62. TIME /T >> D:\Backup\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
½Æ»s¥N½X

¤U¸ü¸Õ¥Î¬Ý¬Ý¡A·PÁ§Aªº¤À¨É¡I
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¤U¸ü¬ã¨s¬Ý¬Ý¡A·PÁ¤j¤jªº¤À¨É~~
Jack

TOP

«Ü¼F®`, ¼g±o³o»òªø, ¤U¸ü¨Ó¸Õ¸Õ

TOP

¦^´_ 1# jslin


   

½Ð°Ý¦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

TOP

        ÀR«ä¦Û¦b : §g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí ¤W¤@¥DÃD