Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to rename a file on cmd prompt to current date

ren somefile.txt somefile_%time:~0,2%%time:~3,2%-%date:~-10,2%%date:~3,2%%date:~-4,4%.txt
Comment

how to rename a file on cmd prompt to current date

ren somefile.txt somefile_%time:~0,2%%time:~3,2%-%date:~-10,2%%date:~3,2%%date:~-4,4%.txt
Comment

PREVIOUS NEXT
Code Example
Shell :: scp local to ssh aws 
Shell :: rsync as sudo 
Shell :: shellpish 
Shell :: email client for linux 
Shell :: check redis server status 
Shell :: docker compose up from another file 
Shell :: how to uninstall global babel jest npm 
Shell :: create github repo without browser 
Shell :: openssh setup firewall on windows 
Shell :: conda install pdftotext 
Shell :: rename a branch alredy pushed 
Shell :: du sort by size linux 
Shell :: rearrange pdf pages linux 
Shell :: install wget on redhat 
Shell :: debian upgrade python 
Shell :: -v /var/run/docker.sock jenkins/jenkins 
Shell :: batch file path 
Shell :: count lines in bash script 
Shell :: change user of a directory in linux 
Shell :: How to squash the last n commits together 
Shell :: github auto close issue 
Shell :: powershell connect to microsoft teams 
Shell :: shell iterate over lines in variable 
Shell :: blame in github 
Shell :: sudoers file location 
Shell :: install wmctrl 
Shell :: Linux get bluetooth mac address 
Shell :: you are running create-react-app 
Shell :: redis: command not found 
Shell :: new screen linux 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =