Skip to content

Mustafa Nural

Ramblings on programming, systems administration, and linux

menu

Month: August 2013

Moving files from all subdirectories to a single directory

Posted on August 13, 2013June 20, 2019 by mvnural
pushd c:\images
   for /r %%a in (*.*) do (
     MOVE "%%a" "c:\single\%%~nxa"
   )
popd

Adapted from http://stackoverflow.com/a/11721037 .

Tagged batch, windows1 Comment

Recent Posts

  • Configuring Thinkpad W540 Touchpad (Clickpad) – Ubuntu 14.10 (Utopic) March 8, 2015
  • Fixing Firefox’s Backspace Behavior in Linux July 29, 2014
  • Updating from KDE 4.11 to Latest KDE Version for OpenSuse 13.1 July 11, 2014
  • Starting and Stopping manually installed MySQL Automatically on OpenSUSE 13.1 February 25, 2014
  • openSUSE Tweaks & Configuration December 8, 2013

Archives

  • March 2015 (1)
  • July 2014 (2)
  • February 2014 (1)
  • December 2013 (1)
  • August 2013 (1)

Categories

  • Technical
Add your own widgets here
Theme: Vogue by Kaira