- ©«¤l
- 549
- ¥DÃD
- 152
- ºëµØ
- 0
- ¿n¤À
- 691
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-8-10
- ³Ì«áµn¿ý
- 2022-9-7
|
¦^´_ 2# GBKEE
·PÁÂ,³o½gªº¥\¯à¸ò§Úªºµ{¦¡½X¤£¤@¼Ë,§Ú¥Ø«eªº¤è¦¡¥i¥H¦Û°Ê¦C¥X,¤]¥i¥H³z¹Lµ{¦¡¦Û°Ê¿ï¾Ü¦Lªí¾÷¨Ã¥B¥Î´ú¸Õªº¤è¦¡§ä¥Xport,¦ý³o½g¦h¤F¤@Ó¥\¯à(¼u¸õµøµ¡¿ï¾Ü¦Lªí¾÷!)- Dim reg As Variant, oreg As Object, mystr As Variant
- Const HKEY_CURRENT_USER = &H80000001
- Set oreg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
- oreg.enumvalues HKEY_CURRENT_USER, "Software\Microsoft\Windows NT\CurrentVersion\Devices", mystr, Arr
- For Each reg In mystr
- If Left(reg, Len(Sheets("¨ä¥L").[k2])) = Sheets("¨ä¥L").[k2] Then '§ä¥XÃþ¦ü¦WºÙªº¦Lªí¾÷
- Exit For
- End If
- Next
- '´ú¸Õ¬Ý¬Ý¬Oþ¤@ÓPort
- For i = 0 To 999
- On Error Resume Next
- If i < 10 Then X = "0" & i Else X = i
- If i = 0 Then
- Application.ActivePrinter = reg & " on nul:"
- If Application.ActivePrinter = reg & " on nul:" Then Exit For
- End If
- Application.ActivePrinter = reg & " on Ne" & X & ":" '³]©w«ü©wªº¦Lªí¾÷
- If Application.ActivePrinter = reg & " on Ne" & X & ":" Then Exit For
- Next
½Æ»s¥N½X |
|