- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2018-6-7 05:28 ½s¿è
¦^´_ 1# adrian_9832
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim xPath As String, xBat As String, St As String, Msg As Boolean
- xPath = "d:\" '«ü©wªº¸ê®Æ§¨
- xBat = xPath & "Print.Bat" 'Bat-> DOS ¤U¦Û°Ê°õ¦æªºÀÉ®×
- St = Dir(xPath & "*.txt", vbDirectory) '¬d¬Ý«ü©w°ÆÀɦWªºÀÉ®×
- If St <> "" Then
- Msg = True
- With CreateObject("Scripting.FileSystemObject").CreateTextFile(xBat, 1) '«Ø¥ß¤@ÓÀÉ®×
- .Write "PRINT " & xPath & St & vbCrLf '¼g¤J
- St = Dir '¬d¬Ý¤U¤@ÓÀÉ®×
- Do While St <> ""
- .Write "PRINT " & xPath & St & vbCrLf
- St = Dir
- Loop
- .Close
- End With
- If Msg Then Shell xBat '°õ¦æµ{¦¡
- Kill xBat '§R°£¤@ÓÀÉ®×
- End If
- End Sub
½Æ»s¥N½X |
|