0
所以我試圖讓這個程序打開一個文件,用戶選擇,所以我讓他們第一個 輸入他們已經在桌面上的文件,並把名稱後面的.txt擴展名,然後我嘗試在目錄的末尾添加名稱,並在行上說:10列:1類型不匹配任何幫助,將不勝感激謝謝。我是新來這個:)類型不匹配錯誤VBScript
Option Explicit
Dim a, b, c, d, e
Set a = createobject("wscript.shell")
c = msgbox("Welcome to my word finding program!", vbInformation+vbOkCancel+vbDefaultButton1+vbSystemModal, "Information: ")
b = inputbox("MAKE SURE THAT YOUR FILE IS ON YOUR DESKTOP!" &vbLf& "Please enter the name of your .txt file" &vbLf& "Rembmer to add .txt after it" &vbLf& "EX: Name.txt")
a.run"C:\Users\%username%\Desktop\", b
很大的變量命名,BTW 。 –