Showing posts with label dos commands. Show all posts
Showing posts with label dos commands. Show all posts

Sunday, September 13, 2015

How to View All Environment Variable and Their Values

Mac:

Open a terminal window and type printenv
~$ printenv

Windows (DOS):

Open a Command Prompt and type set
c:\Users\username? set


Windows (Powershell):


Open a Powershell window and type Get-Childitem env:
PS C:\Users\username> Get-Childitem env:               


Links
Mac/Unix Bash Shell
Dos
Powershell

Monday, March 25, 2013

Everyone's Doing It - Creating Symbolic Link


MKLINK [[/D] | [/H] | [/J]] Link Target
 
/D      Creates a directory symbolic link.  Default is a file
symbolic link.
/H      Creates a hard link instead of a symbolic link.
/J      Creates a Directory Junction.
Link specifies the new symbolic link name.
Target specifies the path (relative or absolute) that the new link
refers to.



Example: mklink /D \MyDocs /J C:\Users\User1\Documents


How to Create Symbolic Link in Windows7!

Saturday, May 12, 2012

The Useful Device "nul"

You can throw out command line error message by sending output to the nul device!

Windows Command Tips & Tricks
Google: device null

Pipe Commands to the Clipboard

You can redirect command output to tthe clipboard by using " | clip"

Examples:

REM copy directory content to the clipboard
dir | clip

REM copy computer name to the clipboard
hostname | clip

Tuesday, December 21, 2010