- ©«¤l
- 913
- ¥DÃD
- 150
- ºëµØ
- 0
- ¿n¤À
- 1089
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-8-28
- ³Ì«áµn¿ý
- 2023-7-19
|
¦^´_ 2# GBKEE
G¤j¦n,
§Ú¦b´ú¸Õ®É,¥[¤J¤F§Ú»Ýnªº¸ô®|,¦ý¤@ª½µLªk°õ¦æ,¥X²{"¤Þ¼Æ¤£¬°¿ï¾Ü©Ê",§ÚµLªk²z¸Ñ¬O¤°»ò¼Ëªº¿ù»~,¥i§_«ü¾É?
¥t¥~§Ú¦b½Æ»s¨ì«ü©w¸ê®Æ§¨«á"W:\0_¦Ûqªí³æ\Backup\ÜÀx¦@¥Î" & "*" & Format(Date, "YYYYMMDD") & "*\" '¥Øªº¸ê®Æ§¨
·Q¨ÏìÀɦW¥[¤W·í¤ë¤ë¥÷,¦ý¦]¬°¨C¤ë¤ë¥÷³£·|ÅÜ°Ê,½Ð°Ýn«ç»ò¼g,¥¦¤~·|¦bìÀÉ«á±¥[¤W·|Åܰʪº¤ë¥÷?- Option Explicit
- Dim sf As Object
- Sub ¸s²Õcopy()
- Set sf = CreateObject("Scripting.FileSystemObject")
- ¸s²Õcopy_SubFolder = "W:\Ī¦Ë¦@¥Î\ÜÀx¦@¥Î\1_²z³f.®w¦s\1.¤é¯Z²z³f´«ºâªí\*5¤ë.xlsx" '**©I¥sµ{¦¡ °Ñ¼Æ¬° «ü©wªº¸ê®Æ§¨"
- End Sub
- Sub ¸s²Õcopy_SubFolder(xFolder As String) '**°Ñ¼Æ¬°¤å¦r
- Dim xSub As Object, E As Variant
- Set xSub = sf.GetFolder(xFolder).SubFolders
- '**SubFolders : ¶Ç¦^¥]§t©Ò¦³¸ê®Æ§¨ªº¤@Ó Folders ¶°¦Xª«¥ó
- For Each E In xSub
- ¸s²Õcopy_xFiles E '**©I¥sµ{¦¡ ¶Ç»¼°Ñ¼Æ Folder ª«¥ó
- '**¶Ç»¼¤U¤@¼hªº¸ê®Æ§¨***
- ¸s²Õcopy_SubFolder E.Path '**©I¥sµ{¦¡ ¶Ç»¼°Ñ¼Æ SubFolders ¶°¦Xª«¥ó
- Next
- End Sub
- Sub ¸s²Õcopy_xFiles(xF As Variant) '**°Ñ¼Æ¬°¤å¦r
- Dim E As Variant
- For Each E In xF.Files '**Files ¶°¦Xª«¥ó : ¸ê®Æ§¨¤ºªº©Ò¦³ File ª«¥óªº¶°¦Xª«¥ó
- Debug.Print E.SHORTPATH = "W:\0_¦Ûqªí³æ\Backup\ÜÀx¦@¥Î" & "*" & Format(Date, "YYYYMMDD") & "*\" '¥Øªº¸ê®Æ§¨ '** E.SHORTPATH : Àɮתº§¹¾ã¸ô®|¦WºÙ
- '**¦b³o¸Ì®M¤J§A©Ò»Ýªºµ{¦¡½X
-
- '************
- Next
- End Sub
½Æ»s¥N½X |
|