Windows Command Line

Windows Command Line


The FINDSTR command works almost like grep, so it can be useful with other commands:


A couple of Windows command line tools that are helpful for dealing with Windows programs from the command line are: ASSOC and FTYPE.


ASSOC will list all the file associations if given no arguments.
If provided a file extension like ".py", then it will give you the file type for that association:

C:\>ASSOC .py


FTYPE will get or set the command to execute for a specific file type. For example:

C:\>ftype Python.File
Python.File="C:\WINDOWS\py.exe" "%1" %*

For me, this was associating with a Python 2.7 interpreter, instead of the Python 3.4 one I wanted. To fix my problem, I executed:

C:\Python34\myscripts>ftype Python.File

Python.File="C:\Python34\python.exe" "%1" %*

Restoring F8 key at Boot

If you want to be able to use the F8 key at boot time in Windows 8+, you need to execute the following before it's too late!

bcdedit /set {default} bootmenupolicy legacy

No comments:

About Me - WrightRocket

My photo

I've worked with computers for over 30 years, programming, administering, using and building them from scratch.

I'm an instructor for technical computer courses, an editor and developer of training manuals, and an Android developer.