The Command Prompt Lives, a Beginner’s Guide from a Beginner

Most people will use Powershell, the *nix-like command interpreter brought to Windows. I am “old school”. I remember MS-DOS when I was young, I always wanted to learn it better. I read an article on the Windows Blog that mentioned that the Command Prompt still lives and it encouraged me to re-delve into it. Having used the Command Prompt for a bit I can tell that it is decent.

A command interpreter and its tools can be easier to use than the File Explorer for certain tasks. For example: with a large number of file management tasks; to recycle all photos: del *.jpg; and move or rename a file: move name.txt dir\subdir\rename.txt.

Most commands that get used are described with the help command. I made an organized list below which is mostly a rehash of the help command. help command will provide ore details.

  cd/chdir  —directory change to, just "cd" will display path
  dir       —directory content list
  popd      —directory location return to
  pushd     —directory location change to, remember old
  tree      —directory hierarchal view
  copy      —dir/file copy
  del/erase —dir/file to recycle bin
  md/mkdir  —directory make, has recursive ability "c:\a\b\…"
  move      —dir/file move or rename
  rd/rmdir  —directory remove (erases), `/s` for recursive
  other     —attrib cipher compact expand icacls makecab recover en/ame replace robocopy xcopy
  diskpart  —disk partition and format tool: efficient yet use with attention
  other     —chkdsk convert defrag fdisk format label subst
  exit      —exit Command Prompt or script
  taskkill  —terminate task or application
  other     —powercfg runas sc shutdown start tasklist
  assoc ftype reg regini regsvr32
  doskey    —macros (aliases in Linux) define, history show
  path/set  —per term environmental-varible editing/addition, type "Environmental Variables" in Start Menu to keep
  prompt    —Command Prompt elements define
  other     —date mode setx time title ver whoami
  comp      —like diff!?
  find      —find text string, in file or piped
  more      —display output one screen at a time "type file|more"
  type      —display contents of text file(s)
  other     —fc findstr print
  choice    —choice prompt?!
  cscript   —scripting engine? used for Visual Basic
  echo      —display message
  for       —loop defined inputs to command
  if        —conditional processor
  rem       —remark (that is, a note line)
  arp getmac hostname ipconfig net netsh netstat nslookup ping
  driverquery msiexec sfc systeminfo w32tm WBAdmin winsat
  bcdedit bootcfg
  clip      —output of command place in clipboard
  cls       —clear screen

other tips

  • explorer . (or dir\subdir) opens file explorer
  • tab-completion is available for files and directories (e.g. cd d[tab] will loop through directories starting with d)
  • esc clears line, f7 displays command history, f8 search command history
  • doskey can add macros (Linux “aliases”), more can be read on this post
  • I created a Command Prompt shortcut for administrative use; I like to make my admin Command Prompt use different foreground and background colors to consistently remind me to be heedful: Start Menu → type Command Prompt → right-click and Open file location → Command Prompt shortcut copy, paste, rename “Command Prompt (Admin)” → right-click “Properties” edit shortcut command to add option: %windir%\system32\cmd.exe /k "color 74 & echo Administrator" → and then “Advanced” button to choose Administrator.
  • Batch-files are used for task scripting. Windows Batch Scripting seems to cover it alright.
  • piping (|), redirection (>), conditionals && and || are available; a few details can be found here
  • I created a white theme to use with the Command Prompt, see image on right.
  • My posticon I converted into a white icon. For anyone who would like it it can be downloaded here.

Visual Studio 2017 options that could be default

Visual Studio is set up good initially. There a are a few necessary edits below that I think most people will want:

* environment
    * documents
        * uncheck  allow editing of read-only files
        * uncheck  show pin button                      # right-click has option
* text editor
    * general
        * uncheck  selection margin                     # i like the extra space
        * uncheck  indicator margin
    * all languages-general
        *   check  word wrap
        * uncheck  show visual glyphs for word wrap
        * uncheck  line numbers                         # status bar provides
    * all languages-scroll bars
        * uncheck  show horizontal scroll bar           # word wrap makes this extraneous
    * all languages-tabs
        *   block  indenting
        *       4  tab and indent size                  # define it enough to be visible
        *   check  keep tabs                                # documents received can be created w/ tabs

A couple other tips:

* To hide menu bar I found an extension for.
* tab show: _Edit_ > _Advanced_ > _Visible White Space_ (_Ctrl_ + _R_, _Ctrl_ + _W_) because sometimes I mix them.

Today’s world requires being official

If I could have seen into the future I would have done some things better. Growing up with garage projects and endeavors with my friends, I guessed that such loose, good-natured activities would always exist. What I have learned since is that keeping organizations and such together and able requires some type of official sponsorship. I remember a riding club that did this and they are doing good. It adds consistence and balance by centralizing purpose. I mention this because I was my own champion; I was still interested in the whole but not as much as I should have been and my relationships turned to fleeting. So I am here to recommend to readers become part of something official. Even if it is considered a hobby a person can contribute to its future when the movement is able to go on. God bless everyone.

Git with PowerShell and its Viability

Because I am new to Windows I was wondering if using Git with PowerShell was realistic. Coming from Linux Git works well with the *nix toolset because it was designed around it. When I use Windows I was hoping it likewise reliably. The Git for Windows package does include a Bash shell and a number of *nix tools; to use Git though with the native tools would make me feel better.

The basics

The regular PowerShell has to be used. PowerShell ISE is for making scripts and some programs will only run on the regular PowerShell (e.g. Vim for instance). If PowerShell ANSI colors are desired to be edited they have to be done so manually as theme support is only available to PowerShell ISE.

PowerShell setup

Here are the Properties I edit:

  Command History Buffer size to 1000, easy for processor to do
  Command History Discard Old Duplicates
  Text Selection Enable line wrapping selection
  Screen Buffer Size Height to 8000 or large number
  Screen Buffer Size Wrap text on resize

PowerShell configuration create:

test-path                     $profile  # config. existance test
new-item -itemtype file -path $profile  # config. creation

(Warning: After I created the profile I tried text redirection to add text to the file. This led me on a long path learning about file encoding. Text redirection uses the Out-File cmdlet that uses the system’s current ANSI code page for encoding which is UTF-16LE with BOM for most Windows users now. Since I am mainly a Linux user I use UTF-8 without a BOM. The only help that appears to be reasonable to use UTF-8 without a BOM is to use this function but this will create Windows line endings. Using a regular text editor appears to be the only solution for me. More can be read about it here.)

Scripts to be run on Windows require that the ExecutionPolicy allow them. The profile is considered a script. The current execution policy can be obtained by typing Get-ExecutionPolicy. The execution policy help pages can be viewed by typing help about_signing. I choose to use RemoteSigned where only remote scripts have to be signed: Set-ExecutionPolicy RemoteSigned.

I edited some of PowerShell’s varibles it sets for command coloring:

[enum]::GetNames([System.ConsoleColor])           # colors available print
$host.ui.rawui                                    # colors fore/back-ground print
$host.ui.rawui.foregroundcolor         = "Green"
$host.privatedata                                 # colors for errors print
$host.privatedata.errorbackgroundcolor = "Blue"
get-psreadlineoption                              # syntax highlighting colors print
set-psreadlineoption -tokenkind comment gray

PowerShell and Vim color ties

Vim is a good text editor to work with Git for me. I hope to be able to continue using it. However, PowerShell uses unique ANSI colors and I lacked the know-how to map together Vim’s and PowerShell’s (like this other user). PowerShell itself is only a 16 color terminal which is good enough with a good Vim colorscheme. I edited the shell’s colors (in Properties) to match the *nix’s ANSI colors (this post) shows how they line up). My Vim colorschemes look better now but how Vim is handling the background color and maybe some other things unexpectedly and the colorschemes look off still. I have yet to resolve this.

Vim setup

To install:

  • executable installer download
  • installation options:
    Vim executables  # gvim and runtime files are likely desired
    Vim console      # vim.exe for console version
    _vimrc           # configuration with many basic settings
    plugin directrys
    native lang      # english default (for other languages)
    .bat files       # vim shortcuts... unrecognized in PowerShell
  • installation location can be for allusers or local (e.g. C:\Program Files (x86)\Vim or $HOME\AppData\Local\). I recommend local as configuration files can be tucked there and because local data can only be edited by the local user.

For Vim to be recognized in PowerShell I create an alias (allusers may install vim.bat, vimdiff.bat): Set-Alias vim "C:\Program Files (x86)\Vim\vim80\vim.exe". I be recognized every time PowerShell is launched I added it to the $profile.

I also created a hackish $MYVIMRC setting so UTF-8 is used. Here is how it works: UCS [Unicode Character Set] is used as part of UTF-8 and UTF-16, so I set the characters that Vim uses to UTF-8). fileencoding can now be left blank for discovery and will adopt &encoding (UTF-8) otherwise:

if has ("multi_byte")
  if &termencoding == ""    " characters the keyboard uses, null=basic of $enc
    let &termencoding = &encoding
  set encoding=utf-8        " characters that Vim uses
  setglobal fileencoding=   " encoding of the file, null=discovr else=encoding
  "setglobal bomb            " byte-order-mark used for discovery, leaves mark

Git setup

When installing Git I used all the default settings.

After the install, I was able to use Git normally. I had wondered if Git would be tied to a number of *nix tools for it to be able to function: thank goodness it appears from all uses I have done that it can run on its own. I am happily using Git from PowerShell now.

External links

Microsoft Surface Pro 3 Overview

I wanted a tablet that would help me type. I am a journalist and hoped to have the ability of a tablet to handle it. I bought a Surface Pro 3 with a Type Cover (snap on keyboard) because of a video I found on YouTube. This tablet works good for me and is handling other tasks well like graphic creation. It is also reasonably sized and lightweight; this makes it easy to carry in my backpack. Read this hardware review for hardware information.

This is an overview of the Surface Pro 3. I created a install CD, tested the hardware, and did some custom setup options.

Install Disc creation

I learned the hard way. I grokked that an install DVD was legacy, that the Reset PC and other tools in the Windows Recovery Environment could fix it. I had to buy it new later ☻ (BTW the boot error was entirely my own fault). The good news is that Microsoft has made available a Install DVD that can be downloaded. A search for Windows Media Creation Tool lead me to the right place.

Recovery Environment creation

Most Windows installations have a Recovery Environment partition. The Recovery Environment has tools to repair common problems and is real useful. However I have only been start it when in a running Windows installation (under Recovery Options). To have it always available a Recovery Environment creation utility exists to put it on a DVD or Flash Drive or SD card. Type create a recovery drive to open it.

If there is ever a need to recover Windows later this page has more details.

Hardware test and benchmarks

I wanted to test the hardware to make sure it was working correctly. I used the Windows Memory Diagnostic (open Start Menu and type this is the quickest way to get to it) utility first. Then did disk error check (File ExplorerThis PC(right-click C:\, Properties)Tools TabError checking Check. Then I ran a S.M.A.R.T. test on the disk. S.M.A.R.T. tests are built into the disk drives themselves and test the functionality of the hardware. I recommend doing a S.M.A.R.T. extended test with smartctl.

I tested the drive speeds as:

drive             read  write
----------------  ----  -----
SSD               ~500  100
USB Flash drive:  ~100  12
* MB/sec

Custom setup options

  • display scaling (aka desktop scaling): I increased to 158%: change display settingscustom scaling. (For a 217PPI display 225% is technically right so the scaling must be disproportional.)
  • display color calibrate: I have a guide that might help
  • recycle bin link to quick access to leave Desktop open for work files: themesDesktop icon settings
  • power plan adjustments: Control PanelHardware and SoundPower OptionsChange plan settingsChange advanced power settings
           bat  plg
slideshow  ava       # battery life should be ok with this on
sleep      10   45
hibernate  45   -    # hibernate loads quick enough
brightnes  50   50   # easy for the eyes brightness level
adaptbrig  on   on   # adaptive brightness is a nice bonus
  • touchpad
    • “leave touchpad on when a mouse is connected” turn off
    • tap as mouse click disable—bottom corners use
    • “drag two fingers to scroll”—on leave, ♥ the two-finger scroll
    • “pinch to zoom”—off turn, occasional and helps avoid accidentals
    • three and four finger gestures—off turn, repetitive and helps avoid accidents
  • right mousebutton key to Right Control key, keyboard-layout_context-menu-key-as-right-control.reg (requires reboot):
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,e0,5d,e0,00,00,00,00
  • date format I customized as “yyMMdd ddd” so that it would fit in the taskbar, this can be done in Control PanelClock, Language, and RegionChange date, time, or number formatsAdditional settingsDate tab

Program additions

  • 7-zip
  • Arachnophilia
  • CorelDRAW
  • Geany—good basic text editor. I wrote a post to pare it down to just what I use.
  • HDGraph
  • Git
  • Steam
  • Vim
  • Visual Studio Code
  • WordWeb

Final thoughts

I am proud I got to own this tablet. Microsoft has put some love in to it. I began with the Surface User Guide I found out online that was very helpful.

I wondered if the 4GB of memory was going to be enough. I have emailed, web browsed, typed, and more and it has been running nicely. The GPU plays videos smoothly. On other GPU intense tasks with some programs on lower settings it can do a bit.

The updates are seamless and I am happy with how Windows 10 is running. The Edge browser I have been using although I am a long time Firefox user. It is efficient and just the basics.

(Tip: I read quite a bit offline and find the Print to XPS option useful. I find a page in web browser and type Ctrl + p. I think I have tried out enough options to be able to save these files nicely offline: The Surface Pro 3 has a 2160 x 1440 resolution, a 3:2 aspect ratio, a 12.01″ diagonal physical size, and a 217 PPI. The closest paper size (and I looked through most of them) is the A2 size, the PPI and size match best. To have it work: use the Landscape view and scale 200%. Scaling is necessary because Print to XPS only does 96 PPI. Thereafter in the XPS Viewer the page will need to be scaled down to look right; this can be done with Ctrl + N. Also tabloid at 150% also works good.)

External links

A beginner’s primer for the Amazon Fire


I have a dream of being able to use a tablet as a personal computer. I bought an Amazon Fire tablet to see if it was possible. This is my first time buying either an Android or Amazon product. I gave the tablet a good going over. I had a good experience and thought I would share my observations to people new to the Amazon Fire or could use a few tips.

The good

  • the display is pleasant to look at, it has good color reproduction and a wide viewing angle
  • the glass is hardened, though I’ve been good to it it has more to do with the thoughtful quality of the construction
  • the CPU runs the apps reasonably fast and the graphic animation is usually smooth
  • a SD card slot
  • the files can be organized (either by plugging in the tablet to a personal computer or by a file manager app)
  • the price of $50
  • many apps are available, some quite good

What I would like to see improved

  • built-in storage if it can be done, it is currently four gigabytes after OS updates
  • memory, it is 500MB which makes apps usually have to save states rather then be retained in memory
  • edge tapping, this might be my big, clumsy fingers but I have a hard time with buttons recognition on the edges
  • SD card write access for third party apps for conventional file saves, this would be nice though I know is currently prevented because of a security precaution
  • file organization by folders only, currently Android OS tries to index all the files into four libraries (Documents, Images, Movies, Music) and some apps use these libraries; knowing all file types is a big task and folder organization would mean my family photos don’t get grouped with my web development photos
  • the calendar app to get a notification daemon, currently the app needs to be open to display reminders
  • a setting to define the Text to Speech (TTS) default app; I selected the online TTS app by accident and now when I want to hear pronunciations I have to be online


The tablet has a great reader, for both books and the newsstand. It has easy to look at text and is enjoyable to use. I get the feeling the Amazon tablet was created with the intention of expanding on the Kindle stand-alone reader. The Kindle app behaves just like a Kindle product: intuitive to use, responsive, and the standard extra features. The tablet is worth the price, IMHO, if used just for reading.

Doggie in the window

I like the Amazon store and use it occasionally. The first time I bought something I used the web browser, but I learned since the Shop Amazon app provides a better interface: increased font/image size, good organization, a shelf to compare products… it made it kinda fun. I also found it good to write the reviews in.


Battery discharge time depends on screen brightness and wireless. I’ve noticed that using Bluetooth uses a good amount of power. With a slightly dimmed screen and no wireless, I will get about eight hours from the battery. Recharge time with slightly dimmed screen and no wireless takes about four hours to charge; with Bluetooth it takes about seven hours. When not in use about four percent battery discharge will occur in about eight hours.

Accessories that will probably be needed

  • a $10 stylus will help keep the screen clean
  • a $10 cover will help with accidental bumps
  • a $5 microfiber cloth will help clean the screen
  • a $30-$50 keyboard will help typing a lot
  • a SD card will help if planning to use for any amount of time


  • to move/delete/categorize an app press the app for a few seconds
  • to save home page space categorize the Amazon apps that have a content-page/tab
  • to save home page space turn off to display “Recent Items”, these will still show in the “Recent” content page; Settings > Apps and Games > Amazon Application Settings > Home Screen Settings
  • to switch apps more efficiently with the app switcher touch the window’s title bar
  • to help efficiency consider using the tablet with the orientation as upright – the Android OS is used on many phones where this orientation is common and many apps are designed with this in mind
  • to help performance, it appears to me, it is improved with only a few apps open; apps can be closed in the app switcher by swiping them
  • screenshots are done by holding down power and volume down at the same time for two seconds, a click will sound if successful; it will be saved in Internal Storage/Pictures/Screenshots
  • the tablet will shutdown on its own on a low battery, it does so at zero percent

Keyboard shortcuts


alt   + tab    app switch
ctrl  + t      tablet notifications
space          page down (in browser or readers)
shift + space  page up
alt   + space  search
space + space  lock screen quit


alt   + left/rght  cursor move to line beginning/end
alt   + up/down    cursor move to doc. beginning/end
ctrl  + left/rght  cursor move to word before/after
shift + arrow      cursor move and select text
                   (+alt/ctrl use as modifiers)
shift + backspace  cursor erase forward character
alt   + backspace  cursor erase line
ctrl  + x/c/v/a    cut/copy/paste/all-select

Silk browser (generally the same as Chromiums):

ctrl + t    tab new
ctrl + tab  tab switch
ctrl + w    tab close
ctrl + l    location bar
ctrl + f    find
ctrl + h    history
ctrl + m    menu
ctrl + r    reload


menu + b          browser
menu + c          contacts
menu + e          email
menu + l          calendar
menu + p          player (music)
menu + backspace  desktop

Apps I liked


Converter Free                a unit converter
Dictionary - Merriam-Webster  offline, good defs
DroidEdit                     a nice text editor
File Commander + Cloud        very nice file manager
LastPass                      password manager
NPR News
Podcast Republic
Radar Express
ruler(cm, inch)
Stellarium Mobile Sky May     a nice star chart for a few
TK Music Tag Editor
Weather by MacroPinch
WordWeb - English Dictionary


Watch ABC


CSI: Hidden Crimes
Cut the Rope: Time Travel HD
Doodle Numbers
Geometry Dash
Monument Valley
Pocket Mine
Quick Logic Puzzles
Simple Mahjong
Survival Run by Bear Grylis
Temple Run: Oz
The Hunger Game Adventures
The Secret Society–Hidden Mystery
Where's my Water?



  • Unicode, never could find a way to enter unicode characters… no character map and no key combinations possible
  • are there finger covers I can buy to keep from smudging the screen?

A beginner’s primer for the iPad


I got an opportunity lately to try out and setup an iPad. This was my first time trying an Apple IOS device and I wanted to share a beginner’s perspective for those any who have thought about trying it. I will discuss how to operate it, its design philosophy, and some basic settings that helped me.


  • top quality hardware, all of it, runs smoothly and dependably
  • software is well designed and the user interface intuitive
  • plenty of good apps are available

Could be better

  • no file organization, nor file manager
  • apps often have to reload every time they are switched to


Almost all interoperability is done with three finger gestures: tap, for buttons; finger pinches, for resizing; and swipes, for page flipping. The Home button is used to return to the Desktop.

Design philosophy

Having used computers since the 1980’s, I expected common computer operations to be carried to the IOS. I had the notion to use my iPad as I had my laptop, hoping to get a likewise functionality out of it. One thing I learned definitively though is that the iPad is designed only to be a companion device. To elaborate: it is designed to be a supplemental piece to a personal computer for the purpose of doing specific tasks in an intuitive manner. I did attempt to add common computer functionality to it through apps and settings but it just isn’t designed to do so.

The following point is an expression meant in a positive attitude. However, just for note, I am very peculiar about how I control my files.

The functionality that I expected, that I considered necessary for any computer user, was to be able to manage files. I thought I would be able to rename, organize, copy…. However, there is no file manager. The design philosophy of the IOS is centered around apps. To open a file a user has to adapt their behavior to first recall the app that created it. To transfer files to/from the IOS device requires the user either to: plug the IOS into the personal computer and use iTunes (if the app has iTunes support built in); or use the iCloud app (which I only learned about after returning the iPad). So the process just appears complicated.


  • a $10 stylus will help keep the screen clean
  • a $10 cover will help keep the tablet safe from common bumps
  • a $30 tablet-sized keyboard is nice for typing… common keyboard shortcuts may not always be available, for Safari hold Command to see them
  • apps can be moved or removed from the desktop, press and hold the app for a few seconds to do so
  • close unused apps for better performance (double-click Home and swipe up)
  • for *nix tools a remote shell account can be used with a SSH app

Apps I liked

  • Apple Store
  • Apple Trailers
  • Coda \$10
  • Does not Commute
  • Microsoft Word is free, but Papers is supposed to be real good if it can be afforded
  • Rayman Adventures
  • Vim
  • Weather Channel
  • Wallpapers
  • Yahoo Mail


For users that have other ideas, consider giving Apple your iPad Feedback.