Include "config.vbs" Sub Include(sInstFile) Dim oFSO, f, s Set oFSO = CreateObject("Scripting.FileSystemObject") Set f = oFSO.OpenTextFile(sInstFile) s = f.ReadAll f.Close ExecuteGlobal s End Sub Function MkWorkPath() Set WshShell = CreateObject("WScript.Shell") cmd = ssh + " -i "+key_pri+" -l "+User+" "+Ip cmd = cmd + " mkdir -p "+RemoteWrokPath MkWorkPath = WshShell.Run(cmd,0,true) End Function ret = MkWorkPath() WScript.Echo(ret)