Simply append the string (possibly quoted) to the end of the filename:
Shell("""PathName.exe"" wibble", vbNormalFocus)
or:
Shell("""PathName.exe"" ""wibble"" ""wibble 2""", vbNormalFocus)
This value can then be read in the other application using the Command$()
function which will include everything after the path name and space, including any quotes around the parameters (e.g. "wibble" "wibble 2"
).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…