# プロンプト変更
function prompt{ " > " }
# カレントフォルダ名のみ
function prompt{ "[" + (Split-Path (Get-Location) -Leaf) + "] > " }
# フルパス
function prompt{ "PS " + $(get-location) + "> " }
# カレントパス
$current=get-location
echo $current.path
$Current = Get-Location
if( $Current.Provider.Name -eq "FileSystem" ){
[System.IO.Directory]::SetCurrentDirectory($Current.Path)
}
# Remove-Item c:\tmp\item.dat
## Remove-Item c:\tmp\* -Recurse -WhatIf
## Remove-Item c:\tmp\* -Recurse -Confirm
echo $current.provider.name
Set-ExecutionPolicy RemoteSigned
最終更新:2016年11月24日 15:41