SHARE
TWEET

Untitled

a guest Jul 18th, 2019 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for /f "tokens=2 delims=_" %%G in ('dir /b dirname') do @echo %%G
  2.      
  3. set dirname="relevantdir"
  4. for /f "tokens=1,2 delims=_" %%G in ('dir /b %dirname%') do rename %dirname%%%G_%%H %%H
  5.      
  6. powershell    
  7. ls "*_*.txt" | %{mv -confirm:$false $_.name ($_.name).split("_")[1]}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top