(view source code of which.ps as plain text)
# Which.ps1, Version 1.00
# Locate the specified program file
# Port of Unix' WHICH command
#
# Usage: WHICH.PS1 filename[.ext]
#
# Where: "filename" is a file name only: no drive or path
#
# Written by Rob van der Woude
# http://www.robvanderwoude.com
param([string] $file=$(throw "Please specify a filename."))
(get-command $file).Definition
page last modified: 2024-04-16; loaded in 0.0080 seconds