Following is a summary of the problem along with relevant info about OS, System Environment Variables.
Upon starting PowerShell, screen shows
Windows Powershell
Copyright © 2009 Microsoft Corporation
PS C:\Users>
My Input is:
Python
Output is:
Python 2.7.4 default Apr 8 2013 19:54:46) [MSC v.1500 32 bit (Intel)] on win32"
Type “help” ……etc.
My next input is:
Python CleanupStops.py
Output is:
File <stdin>,line 1
Python CleanupStops.py
^ "
Syntax Error: invalid syntax"
The script resides in the directory pyscripts which is set in the System Environment Variables as shown below.
C:\Python27;C:\Python27\Tools\Scripts\pyscripts;C:\Python27\Lib\site-packages;
Note that my OS is 64-bit SPI while Python 2.7.4 is 32 bit Intel.
Operating System:
- Windows 7 Professional 64-bit SP1
Installation Date: 4/3/2015 10:13:51 PM
.NET Frameworks installed:
- v4.5 Full
- v4.5 Client
- v3.5 SP1
- v3.0 SP2
- v2.0 SP2
Pythonas the first powershell command, trypython CleanupStops.pyor even justCleanupStops.pyas your Windows will likely be configured to associate .py files with python.python CleanupStops.pyas advised above. microsurf likely made it completely incomprehensible ? PowerShell is quite comprehensible, don't say things like this.