1

我有一个 Tiff 文件拆分器 DLL,它有一个 VBA 代码:

Dim tsplit As New SCTiffPageSplitNetDLL.TiffPageSplitterDLL
Dim rslt as Integer
To call the function and split TIFF files, you could use the following:

rslt = tsplit.Tiff_PageSplit("C:\test\test.tif", "C:\outputdir") 
MsgBox rslt

如何在 a 中运行这行代码command prompt?我需要用这段代码制作一个批处理文件(.bat)。

4

1 回答 1

1

您可以将它放在一个 VBScript (.vbs) 文件中并使用 cscript 运行它。请参阅此线程如何从 .bat 运行 .vbs

于 2013-03-22T14:42:38.863 回答