This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Sub cc()'''wshom.ocx | |
Dim WshShell As WshShell, bKey | |
Set WshShell = CreateObject("WScript.Shell") | |
'WshShell.RegWrite "HKCU\Software\ACME\FortuneTeller\", 1, "REG_BINARY" | |
'WshShell.RegWrite "HKCU\Software\ACME\FortuneTeller\MindReader", "Goocher!", "REG_SZ" | |
Debug.Print WshShell.RegRead("HKCU\Software\FinePrint Software\pdfFactory4\FinePrinters\pdfFactory Pro\PrinterDriverData\ShowDlg") | |
Debug.Print WshShell.RegRead("HKCU\Software\FinePrint Software\pdfFactory4\FinePrinters\pdfFactory Pro\PrinterDriverData\PdfAction") | |
'Debug.Print WshShell.RegRead("HKCU\Software\FinePrint Software\pdfFactory4\OutputFile") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Sub 打印当前() | |
Dim acadApp As AcadApplication, objDoc As AcadDocument | |
On Error Resume Next |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
es.exe %* | |
python etpclient.py -s 192.168.1.56 -t 210 %* | |
REM more computers running Everything ETP server ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ftplib import FTP | |
from optparse import OptionParser | |
import sys | |
class ETP(FTP): | |
def set_result_type(self, result_type): | |
# 0: default | |
# 1: ftp link | |
# 2: UNC format | |
self.result_type = result_type |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function FileExists(ByVal fname As String) As String | |
Dim objFSO As Object | |
Set objFSO = CreateObject("Scripting.FileSystemObject") | |
If objFSO.FileExists(fname) Then | |
FileExists = "1" | |
Else | |
FileExists = "0" | |
End If |
NewerOlder