This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-03-18.07:23:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616052233.51.0.171946221972.issue43538@roundup.psfhosted.org>
In-reply-to
Content
bpo-8232 has a patch to add an `arguments` parameter to os.startfile(). This improvement is needlessly tied to that issue. It's useful in general as a safer way to execute applications and scripts compared to using subprocess.Popen() with shell=True. It also enables passing arguments to applications and scripts when using the "runas" operation (prompts with a UAC dialog) and "runasuser" operation (prompts with a credential dialog). The latter operations are supported by default for binary executables and batch scripts in Windows 10, and they can be implemented by the progid of any file type.

Setting the working directory with a cwd parameter is not as generally useful, but it's not entirely useless and simple to add at the same time when adding the `args` parameter.
History
Date User Action Args
2021-03-18 07:23:53eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower
2021-03-18 07:23:53eryksunsetmessageid: <1616052233.51.0.171946221972.issue43538@roundup.psfhosted.org>
2021-03-18 07:23:53eryksunlinkissue43538 messages
2021-03-18 07:23:53eryksuncreate