xcyclopedia
xcyclopedia copied to clipboard
-target_path / -target_path_recursive are ignored, scripts try to scan my whole system
PS C:\git\xcyclopedia\script> .\Get-Xcyclopedia.ps1 -target_path "C:\users\Adam\OneDrive\bin"
Transcript stopped, output file is C:\temp\strontic-xcyclopedia\2021-11-27T13-28-19-job.txt
Transcript started, output file is c:\temp\strontic-xcyclopedia\2021-11-27T13-29-50-job.txt
Starting directory listing...
--> Starting directory listing... C:\Windows\system32 (recursive)
--> Starting directory listing... C:\Windows\SysWOW64 (recursive)
--> Starting directory listing... C:\ProgramData (recursive)
Thanks. Looking into it.
@voltagex
Unfortunately, Dot-slash (./) execution isn't supported (yet) but it's on the way. In the meantime, you can edit the last line of Get-Xcyclopedia.ps1 to the parameters that you would like.
Here are the last two lines:
#start main function with defaults
Get-Xcyclopedia
Change it to whatever you'd like. For example:
#start main function with defaults
Get-Xcyclopedia -target_path "C:\users\Adam\OneDrive\bin" -target_path_recursive ""
Now you can execute with .\Get-Xcyclopedia.ps1 and your parameters will properly override the defaults.
It's not optimal but it works. Thanks for opening the issue!