Windows11: Difference between revisions
| Line 8: | Line 8: | ||
$client = new-object System.Net.WebClient | $client = new-object System.Net.WebClient | ||
$client.DownloadFile("http://www.xyz.net/file.txt","C:\tmp\file.txt") | $client.DownloadFile("http://www.xyz.net/file.txt","C:\tmp\file.txt") | ||
===Second Explorer Window=== | |||
* open one instance | |||
* right click on explorer instance in task bar -> select 'Explorer' | |||
===Link to local file in One Drive=== | |||
* right click on file -> create link | |||
* richt click on link -> properties -> link -> copy target | |||
===Find Executable=== | |||
where <PROGRAM_NAME> // e.g. where npm | |||
===Find File by Name=== | |||
cd <ROOT_OF_SEARCH_DIR> | |||
Get-ChildItem -Filter My*.docx -Recurse | |||
where /R <ROOT_DIR> <FILENAME> // e.g. where /R C:\ angular.drawio | |||
where /R . <FILENAME> // from actual directory | |||
===Find Text/String in File=== | |||
findstr /s <TEXT> <FILES> | |||
findstr /s branch_label *.py | |||
findstr /s /m "Halloo0@1" *.* // m only filenames | |||
Revision as of 06:02, 28 December 2022
Configuration
Explorer
Expand to Open Folder
Operation
Download from Powershell
$client = new-object System.Net.WebClient
$client.DownloadFile("http://www.xyz.net/file.txt","C:\tmp\file.txt")
Second Explorer Window
- open one instance
- right click on explorer instance in task bar -> select 'Explorer'
Link to local file in One Drive
- right click on file -> create link
- richt click on link -> properties -> link -> copy target
Find Executable
where <PROGRAM_NAME> // e.g. where npm
Find File by Name
cd <ROOT_OF_SEARCH_DIR> Get-ChildItem -Filter My*.docx -Recurse where /R <ROOT_DIR> <FILENAME> // e.g. where /R C:\ angular.drawio where /R . <FILENAME> // from actual directory
Find Text/String in File
findstr /s <TEXT> <FILES> findstr /s branch_label *.py findstr /s /m "Halloo0@1" *.* // m only filenames
