下面的代碼應該strNumber的值複製到剪貼板,但它會在「strNumber」字符串複製到剪貼板,而不是它的價值,如何解決它傳遞一個變量的值到一個程序中使用VB腳本
Dim strNumber, SH
Set SH = WScript.CreateObject("WScript.Shell")
strNumber =Inputbox("Number","Input Required")
SH.Run ".\ClipboardCopy.exe set strNumber"
Set SH = Nothing
不知道什麼ClipboardCopy.exe做,並採取,但它應該是'SH.Run&strNumber' – PatricK
ClipboardCopy.exe只是一個應用實例名稱 – Nofuzy