Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get the latest file in a directory powershell

$dir = "C:	est_code"
$latest = Get-ChildItem -Path $dir | Sort-Object LastAccessTime -Descending | Select-Object -First 1
$latest.name
Comment

PREVIOUS NEXT
Code Example
Shell :: kill screen ubuntu 
Shell :: ufw allow ssh 
Shell :: checking for existing ssh keys 
Shell :: files changed in a commit 
Shell :: installing eth-brownie 2022 
Shell :: npm install globally 
Shell :: lhapüasd 
Shell :: how to do sum with exper in linux 
Shell :: Verificação de acesso de escrita [/srv/moodle/lib/editor/atto/plugins] Instalação abortada devido a falha de validação 
Shell :: open .bashrc 
Shell :: linux list directories 
Shell :: activate virtual environment ubuntu 
Shell :: nmcli connection status 
Shell :: last return code linux 
Shell :: add gpg key to zsh .zprofile 
Shell :: linux exit file path 
Shell :: gitignore template eclipse 
Shell :: how to install node.tar.xz in ubuntu 
Shell :: Criar um dispositivo gerido por cores 
Shell :: stop port in use 8000 
Shell :: Search for file using bash 
Shell :: ubuntu exec how to exit 
Shell :: linux find file recursively 
Shell :: git remove file from watch 
Shell :: generate ssh in ubuntu 
Shell :: ngitignore 
Shell :: create git aliases 
Shell :: how to install figma for linux 
Shell :: datetime calculation in shell 
Shell :: rsync --iinclude 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =