Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-target_path / -target_path_recursive are ignored, scripts try to scan my whole system #5

Open
voltagex opened this issue Nov 27, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@voltagex
Copy link

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)
@strontic strontic added the bug Something isn't working label Dec 29, 2021
@strontic
Copy link
Owner

Thanks. Looking into it.

@strontic strontic added enhancement New feature or request and removed bug Something isn't working labels Dec 29, 2021
@strontic strontic self-assigned this Dec 29, 2021
@strontic
Copy link
Owner

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants