Set WshShell = CreateObject("WScript.Shell") ' Get the directory of this script (scripts\), then go up to media-server root scriptDir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) serverRoot = CreateObject("Scripting.FileSystemObject").GetParentFolderName(scriptDir) WshShell.CurrentDirectory = serverRoot ' Run python completely hidden (0 = hidden, False = don't wait) WshShell.Run "python -m media_server.main", 0, False