[VBA ] plink作交談

作者: ice0803 (缺人SpotifyFamily)   2016-08-03 16:45:33
Set wsh = VBA.CreateObject("WScript.Shell")
但因為要藉由plink去得到資料
所以要常常
wsh.Run("plink xxxxxx", 0, True)
這方式會一直重新開shell 執行 plink 然後得到資料再把shell 和 plink關起來
是否有方法可以
開啟一次shell並執行 plink 後,不關掉
隨時我在vba程式可以直接和 plink作交談,
等所有程式都完成時,再把這個shell關掉
感謝

Links booklink

Contact Us: admin [ a t ] ucptt.com