<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Executing_programs</id>
	<title>Executing programs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Executing_programs"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Executing_programs&amp;action=history"/>
	<updated>2026-05-14T01:02:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=Executing_programs&amp;diff=9217&amp;oldid=prev</id>
		<title>Kristian Rother: /* Starting programs on Windows */</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Executing_programs&amp;diff=9217&amp;oldid=prev"/>
		<updated>2013-02-05T20:43:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Starting programs on Windows&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cat|Python Commands}}&lt;br /&gt;
{{Python Links}}&lt;br /&gt;
&lt;br /&gt;
== Starting programs on Windows ==&lt;br /&gt;
Often, it is useful to use a Batch file to start a Python program on Windows. To do so, create an empty file with the ending .bat (Save as.. in IDLE), and write into it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
C:\Python26\python.exe my_script.py&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using command-line options ==&lt;br /&gt;
You can pass options to your program in the batch file. To interpret the options, the sys module contains a list of arguments sys.argv. Note that the first argument is always the name of the&lt;br /&gt;
program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import sys&lt;br /&gt;
print sys.argv&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kristian Rother</name></author>
	</entry>
</feed>