Author Topic: Windows Tips and Tricks  (Read 3470 times)

Probeman

  • Emeritus
  • *****
  • Posts: 2826
  • Never sleeps...
    • John Donovan
Windows Tips and Tricks
« on: December 07, 2017, 06:52:20 PM »
I'm starting this topic because there's a number of cool tricks I've learned that have been helpful for my own work, especially with regard to command prompt windows.

For example, did you know that in Windows Explorer, when you hold the shift key and right-click the mouse on a folder, you get this menu:



This menu opens a command prompt in the folder selected as seen here:



This window is useful for running batch files or other commands.

Another example, when you are in the folder at this command line, to get an editable text file containing the files in that folder, simply type:

dir *.* > files.txt

or any other filename you would like to save the output to.  Then open the file in any text editor.
« Last Edit: April 13, 2020, 08:57:31 AM by John Donovan »
The only stupid question is the one not asked!

Mike Matthews

  • Global Moderator
  • Professor
  • *****
  • Posts: 142
Re: Windows Tips and Tricks
« Reply #1 on: December 08, 2017, 09:48:08 AM »
How many times have I used shift and right click to get to 'open with...' and never spotted that 'open command window here' :o

One tip I got told that I find particularly useful for keeping a maintenance log file: open a new text file and put .LOG on it's own on the first line. Every time you open the file thereafter the current date and time is automatically appended to the end of the file. Put a shortcut to the file on the desktop and it becomes super easy to add date stamped log entries as and when you need.

jrminter

  • Professor
  • ****
  • Posts: 72
Re: Windows Tips and Tricks
« Reply #2 on: July 27, 2018, 05:14:04 PM »
Just saw this old but useful tip from Probeman. I noticed the choice was missing from my right-click menu. Stackoverflow to the rescue... Can't get easier than this: Type "cmd" in the location bar.

For an English keyboard, "Alt-D" shifts focus to the location bar, so the quick way is to type "Alt-D" and type "cmd". Sweet!