別のユーザーとして IE を実行するスクリプトを作成しています。最初のスクリプトで入力が表示されます。入力からの値をユーザー名として使用したいと思います。
Option explicit
Dim Input, europe
Input = InputBox("Please type mailbox name")
europe = "EUROPE\" & Input
Dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "RunAs /profile /user:" & europe & "C:\Program Files\Internet Explorer\iexplore.exe"
WScript.Sleep 100
oShell.Sendkeys Input
oShell.Sendkeys "{ENTER}"
Wscript.Quit
ご覧のとおり、ユーザー名はドメイン上にEUROPE\
あり、パスワードはユーザー名と同じです。
したがって、ユーザー名は次のようEUROPE\ & Input
になり、パスワードは次のようになります& Input
変数から文字列を取得してシェルコマンドに渡すのに問題があります。