Re: Select-String : The file C:\Users\XXXXXXX\AppData\Local\Temp\debug cannot be read: Access ... denied
Thank you, really appreciate you following up on this.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Thanks. So it's a symlink with a relative path to a directory.
WinSCP has problems with resolving the relative path. I'll look into it.
- It might work better with SFTP protocol (why are you using SCP?)
- If you can, change the symlink to use an absolute path (
/sys/kernel/debug
).
- Exclude the
/debug
from the search by adding|/debug
to the file mask.
/sys/kernel/debug
).
/debug
from the search by adding |/debug
to the file mask.
/debug
a file or a directory?
C:\Utils\WinSCP
, for many years.
C:\Utils\WinSCP
dir, not the default dir.
QTPi4Eth
in *.* from root on an Asus Router), continues 3 more lines then I get this error below (User Redacted to XXXXXX).
File /data/boot_state_0 matches mask, searching contents...
File /data/scratchpad matches mask, searching contents...
File /debug matches mask, searching contents...
Select-String : The file C:\Users\XXXXXXX\AppData\Local\Temp\debug cannot be read: Access to the path
'C:\Users\XXXXXXX\AppData\Local\Temp\debug' is denied.
At C:\Utils\WinSCP\Extensions\SearchText.WinSCPextension.ps1:78 char:30
+ ... $matchInfo = Select-String -Path $tempPath -SimpleMatch $text
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Select-String], ArgumentException
+ FullyQualifiedErrorId : ProcessingFile,Microsoft.PowerShell.Commands.SelectStringCommand
Confirm
The item at C:\Users\XXXXXXX\AppData\Local\Temp\debug has children and the Recurse parameter was not specified. If you
continue, all children will be removed with the item. Are you sure you want to continue?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):