Batch files - Examples (F*)

Download the ZIPped sources Click the floppy disk icons to download the ZIPped sources

 

Batch file examples
Download the ZIPped sources Name Description OS (1) Last modified
(DD/MM/YYYY)
Remarks
Download the ZIPped sources FaR.bat and
FaR.kix
Find And Replace substrings in a string All 15/07/2001 Also available in Perl and Rexx
Download the ZIPped sources FfxCache.bat Delete all files from the Firefox cache in your profile NT 29/08/2008  
Download the ZIPped sources FeazBkup.bat Backup Fileaze jobs NT 22/12/2006  
Download the ZIPped sources FileSys.bat Check file system type of specified drive NT 08/01/2002 NTFS test inspired by a post from Mark Stang on alt.msdos.batch.nt
Also available as OS/2 Rexx script
Download the ZIPped sources FileVer.bat Display the specified program file's version number NT 26/05/2003 Uses SysInternals' STRINGS.EXE
Download the ZIPped sources FlushBin.bat Flush IE cache, temp files, ChkDsk files and Recycle Bin XP 29/06/2008 Uses CLEANMGR.EXE.
Highly experimental, use at your own risk.
Download the ZIPped sources FlushFxC.bat Flush Firefox's cache in the current user's Windows profile NT 28/03/2008 Careful: if you use this batch file without closing Firefox, you may need to manually purge Firefox's cache to reenable display of pictures in web pages
Download the ZIPped sources ForShare This example of FOR's /D parameter restores or removes the shares on all home directories on an NT server. NT (RK) 17/10/2000  
Download the ZIPped sources Foto2Web.bat Create all files necessary to publish your photographs on the web NT 26/10/2007 This batch file uses IrfanView.
Use the diskette icon at the left to download the ZIPped archive that includes the navigation buttons (GIFs). Make sure the GIF file names are lower case after unZIPping, rename them if not (you can use LoCase.bat to rename files to all lowercase).
Download the ZIPped sources FtpDir Show directory of remote FTP site NT 23/11/2001  

 

 

Notes: (1) Operating System version these batch files were meant for
All No version specific commands are used, though it is (obviously) not tested with every DOS version available
95 Windows 95 (and probably Windows 98 as well)
98 Windows 98
DOS3 MS-DOS 3 and 4
DOS6+ MS-DOS 6 and later
Kix Windows (most functions also in plain DOS) with KiXtart
NT4 Windows NT 4 (Windows NT 4 Terminal Server Edition too)
NT Windows NT (Windows 2000 and Windows NT 4 Terminal Server Edition too)
NT+RK Windows NT with Resource Kit (Windows NT 4 Terminal Server Edition with Resource Kit too)
W2K Windows 2000, and probably XP and Server 2003 as well
W2K+RK Windows 2000 with (Server) Resource Kit, and (probably) XP and Server 2003 as well
W2K3 Windows Server 2003
XP Windows XP
OS2 OS/2 Warp
TS Windows NT 4 Terminal Server Edition, or Windows 2000 Server or Windows Server 2003 with Terminal Services