techwiki:dos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
techwiki:dos [2022/02/14 10:08] – [system operation] yingtechwiki:dos [2024/01/11 12:53] – [PowerShell] ying
Line 27: Line 27:
 @ENDLOCAL @ENDLOCAL
 pause pause
 +</code>
 +
 +**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:\App\Python;D:\App_Dev\PortableGit\bin;%PATH%
 </code> </code>
  
Line 265: Line 271:
 wmic cpu get NumberOfCores wmic cpu get NumberOfCores
 </code> </code>
 +
 +===== explorer operation =====
 +
 +  * open explorer and select a item in path <code>
 +explorer /select, D:\zTmp\myFileOrFolder
 +</code>
 +
 +===== file operation =====
 +
 +  * force delete a file <code>
 +del /q /f "\FilePath\file.ext"
 +</code>
 +  * rename file <code>rename A.ext B.ext</code>
 ====== CMD quick actions ====== ====== CMD quick actions ======
  
Line 383: Line 402:
  
   * http://technet.microsoft.com/en-us/sysinternals/bb545027   * http://technet.microsoft.com/en-us/sysinternals/bb545027
 +
 +
 +===== PowerShell =====
 +
 +  * enable script run on powershell
 +    * run powershell as admin, then <code>set-executionpolicy remotesigned</code>
 +
 +  * add ssh <code>
 +# 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
 +</code>
 +  * you need put vim on server machine to be able to edit text file:
 +    * https://www.vim.org/download.php
  • techwiki/dos.txt
  • Last modified: 2024/01/11 12:58
  • by ying