Tips - WSH

【TOP】

PC起動時にプログラムを起動する
VBScriptで書いたログオンスクリプトの例です。
'==================================================================== ' Logon Script with Microsoft(R) Visual Basic(R) Scripting Edition '==================================================================== 'Shellオブジェクトを取得する。 Set WshShell = WScript.CreateObject("WScript.Shell") 'やること.xls を開く。 WshShell.Run("excel C:\Vacant-Eyes\毎日\やること.xls") 'エクスプローラを起動する。 WshShell.Run("explorer /e, C:\Vacant-Eyes")
【戻る】