Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Batch File Replace Text In Text File

Posted on August 4, 2014October 26, 2015 By David Kittell
del /q FileList.txt
del /q CleanFileList.txt

dir *.* /O:N /b /s /d /A:-D > filelist.txt
ssr "C:TempFolder"= "" filelist.txt > filelist_new.txt
ssr "filelist.txt"= "" filelist_new.txt > FileList.txt
del Filelist_new.txt
ssr "ListFiles.bat"= "" FileList.txt > CleanFileList.txt
del FileList.txt
Originally Posted on August 4, 2014
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Windows Batch

Post navigation

Previous post
Next post

Related Posts

Raspbery Pi Setup Proxy Server

Posted on October 11, 2015November 20, 2015

Following the steps on Penguin Tutor I added a bit of the terminal commands to make some tasks quicker. Using these instructions will help add more to the OpenDNS Family Shield post. If you haven’t setup your regional settings yet follow these steps sudo dpkg-reconfigure keyboard-configuration sudo dpkg-reconfigure tzdata sudo…

Read More

HomeBrew – Mac OS Setup

Posted on March 15, 2017May 7, 2021

I use a Mac for my primary computer and sometimes I need to setup a new VM similar to my computer for testing. Here is the basic setup that I use HomeBrew for. I’ll add more later as I remember more or use it more. # Install HomeBrew if !…

Read More

PHP Facebook WebCal Parse

Posted on March 18, 2015

I have seen various ways to parse webcal (ical, ics) files in PHP but they tend to get a little more complicated than they need to in some cases or simply do not work. <?phpPHP $icalURL = '<facebook URL>'; echo '<p>iCal URL:<br/>' . $icalURL . '</p>'; $ical = file_get_contents($icalURL); $sED_Start…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes