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 serhiy.storchaka
Recipients serhiy.storchaka, vstinner
Date 2017-11-16.16:42:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510850566.84.0.213398074469.issue32050@psf.upfronthosting.co.za>
In-reply-to
Content
The same as on DOS.

Change the extension of the Python script from .py to .bat, and insert the following first line:

@path\to\python -x %0 %1 %2 %3 %4 %5 %6 %7 %8 %9

Now you can run it as a bat-file. The command in the first line will run Python, passing the name of this file and up to 9 arguments (you can make it passing more than 9 arguments, but I don't remember the syntax). "@" disables printing this command itself. The first line is not valid Python syntax, but due to the -x option it will be skipped.
History
Date User Action Args
2017-11-16 16:42:46serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2017-11-16 16:42:46serhiy.storchakasetmessageid: <1510850566.84.0.213398074469.issue32050@psf.upfronthosting.co.za>
2017-11-16 16:42:46serhiy.storchakalinkissue32050 messages
2017-11-16 16:42:46serhiy.storchakacreate