jernstrom.org

Random stuff
  • rss
  • Home
  • About
  • Contact me
  • Poems
  • Bluescreen
  • Daily Dilbert

Batch remove %20 from filenames

Kimmo | March 29, 2008

Got tired of the %20 in downloaded files…

@echo off
  1. setlocal EnableDelayedExpansion
  2. for /f "delims=" %%I in ('dir /b ^| find "%20"') do (
  3. set var01=%%I
  4. set var02=!var01:%%20=_!
  5. call :ren
  6. )
  7. :ren
  8. ren %var01% %var02%

mycmd

Categories
Legacy, Windows
Comments rss
Comments rss
Trackback
Trackback

« How to connect to console session with RDC 6.1 Vista/ 2008 Compound TCP and ECN »

Leave a Reply

Click here to cancel reply.

CAPTCHA Image CAPTCHA Audio
Refresh Image

Search jerntrom.org

Recent Posts

  • How to run a DotNet Framework 2.0 Application from a Network Share
  • Slow on Updates…Being Confused…
  • Visual Effects in Windows 2003/XP
  • Set Default Optimized Values for Windows 2003
  • Vm, Vm, My Ware!

Categories

  • Free Stuff
  • jernstrom.org
  • Kinda Virtual
  • Legacy
  • Life
  • Windows

Archives

  • February 2010
  • January 2010
  • October 2009
  • September 2009
  • August 2009
  • January 2009
  • September 2008
  • April 2008
  • March 2008
  • February 2008
  • February 2007
  • January 2007
  • October 2006
  • May 2006
  • March 2006
  • February 2006
  • January 2006
  • February 2005

RSS Desktop Virtualization

  • Today's New Virtualization Related Community Videos - March 10th, 2010 March 10, 2010
  • Microsoft will overhaul virtual licensing, RDP March 10, 2010
  • Parallel’s Summit 2010: Cloud Computing & the SMB Opportunity March 10, 2010
  • Citrix's XenApp 6 debuts March 10, 2010
  • Citrix Announces Citrix XenApp 6 - Download Available March 24th March 10, 2010
  • VMware Releases vCenter Site Recovery Manager 4.0.1 and 1.0 U1 Patch 5 Maintenance Releases March 10, 2010
  • VMware Releases vCenter Update Manager PowerCLI utility for Update Manager 4.0 U1 March 10, 2010
  • Are we going to run out of Internet addresses this year? March 10, 2010
  • Showing Off the New DABCC Virtualization News Player for the iPhone Video Podcast - DABCC TV - Episode 27 March 10, 2010
  • Introducing the DABCC Virtualization News Player for the iPhone Podcast - DABCC Radio - Episode 114 March 10, 2010
rss