Set WshShell = CreateObject("WScript.Shell") strPath = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) WshShell.CurrentDirectory = strPath WshShell.Run """C:\Program Files\Python311\python.exe"" -B server.py", 0, False