Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
techwiki:dos [2021/08/18 03:09] – created ying | techwiki:dos [2024/01/11 12:58] (current) – [PowerShell] ying | ||
---|---|---|---|
Line 27: | Line 27: | ||
@ENDLOCAL | @ENDLOCAL | ||
pause | pause | ||
+ | </ | ||
+ | |||
+ | **add other exe like python into path of cmd** | ||
+ | * note: put added path of python in front of %path% works, while behind it not work | ||
+ | * code <code dos> | ||
+ | SET PATH=D: | ||
</ | </ | ||
Line 262: | Line 268: | ||
</ | </ | ||
+ | * get cpu core < | ||
+ | wmic cpu get NumberOfCores | ||
+ | </ | ||
+ | |||
+ | ===== explorer operation ===== | ||
+ | |||
+ | * open explorer and select a item in path < | ||
+ | explorer /select, D: | ||
+ | </ | ||
+ | |||
+ | ===== file operation ===== | ||
+ | |||
+ | * force delete a file < | ||
+ | del /q /f " | ||
+ | </ | ||
+ | * rename file < | ||
====== CMD quick actions ====== | ====== CMD quick actions ====== | ||
Line 380: | Line 402: | ||
* http:// | * http:// | ||
+ | |||
+ | |||
+ | ===== PowerShell ===== | ||
+ | |||
+ | * enable script run on powershell | ||
+ | * run powershell as admin, then < | ||
+ | |||
+ | * add ssh < | ||
+ | # Install the OpenSSH Client | ||
+ | Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 | ||
+ | |||
+ | # Install the OpenSSH Server | ||
+ | Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 | ||
+ | </ | ||
+ | * after install ssh, go Run services, and set ssh server to startup automatic, then start ssh server | ||
+ | * you need put vim on server machine to be able to edit text file: | ||
+ | * https:// |