Files

Community-submitted scripts for working with files, including scripts for copying and moving files, deleting files, retrieving information about files, setting file attributes, etc.


Add DIR Capabilities to the Get-ChildItem Cmdlet

Submitted by: Bob Landau

Add Summary Information to a File

Submitted by: Ketan Kothari

Check for the Existence of .ERR Files

Submitted by: Anders Bengtsson

Check the Version Number of a File

Submitted by: Sean Rooney

Compare File Versions

Submitted by: Matt Williams

Copy a File From One Remote Computer to a Second Remote Computer

Submitted by: Anonymous Submission

Copy a File Using Windows PowerShell

Submitted by: Kent Finkle

Copy File Name and Path to the Clipboard

Submitted by: Marceepoo

Copy Files

Submitted by: Anonymous Submission

Copy Files Automatically

Submitted by: Randy Hinders

Copy Files From the Recycle Bin

Submitted by: Steve Yandl

Copy Files to the Desktop

Submitted by: Jim Needham, Vector Graphics

Count the Files in a Directory Using Windows PowerShell

Submitted by: Kent Finkle

Delete All Files in a Directory Older than a Specified Number of Days

Submitted by: Israel Farfan

Delete All Files in a Folder That Have Not Been Modified in the Last 90 Days

Submitted by: Anton Kruglikov

Delete All Files in a Folder That Have Not Been Modified in X Number of Days

Submitted by: Eric Lee

Delete All the Files in a Directory

Submitted by: Israel Farfan

Delete All the Files in a Folder Older Than 7 Days

Submitted by: Chris Bennell

Delete Files 10 Days Old or Older

Submitted by: Brantley allen

Delete Files Based on Modification Date

Submitted by: David Fox

Delete Files from the TEMP Folders

Submitted by: Warren Lee Chirhart, Jr.

Delete Files in Order to Free Up Disk Space

Submitted by: Ralph Edington

Delete Files More than 14 Days Old

Submitted by: Yoon Song

Delete Files Older Than 7 Days

Submitted by: Glenn Wilson

Delete Files Older than a Specified Number of Days

Submitted by: Vedran Matica

Delete Files Older than a Specified Number of Days

Submitted by: Yoonki Song

Delete Files With a Specified File Extension

Submitted by: Anoop Puthan Veetil

Delete Old Log Files

Submitted by: Manupriya Jayathilake

Delete Temporary Files from a Set of Computers

Submitted by Gildo Soares (BRAZIL)

Delete the Oldest Files in a Folder

Submitted by: Ralph Edington

Email Log Files

Submitted by: Jan Samson

Filter RoboCopy Output

Submitted by: Bryon Sutherland

Find the Largest File in a Folder

Submitted by: Brett

List Backup Files

Submitted by: Sean Rooney

List Files in a Folder That are Older Than 10 Minutes

Submitted by: Mothershed

List Files with a Specified File Extension

Submitted by: Vic Laurie

List the Executable Files in the System Path

Submitted by: Steve Yandl

List the Files in a Directory Using Windows PowerShell

Submitted by: Kent Finkle

List the Five Most-Recently Modified Files in a Folder

Submitted by: Anonymous Submission

List Unique File Extensions Found in a Folder

Submitted by: Kent Finkle

Mimic the DIR Command

Submitted by: Jason Clement

Modify File Attributes

Submitted by: Ray Burello

Monitor File Modifications

Submitted by: rob.hardy@bbc.co.uk

Move Files from a Floppy Disk

Submitted by: Ken Kellestine

Read RoboCopy Log Files

Submitted by: Axel Larsen

Remove Commas That Appear Within Double Quotation Marks in a CSV File

Submitted by: Austin Ledbetter

Remove Non-English Characters From File Names

Submitted by: Walter Touceda

Rename a File Using a Customized Date

Submitted by: David Lyons

Rename a File Using the Current Time

Submitted by: Donald P. Welker

Rename All the Files in a Folder

Submitted by: David Fox

Retrieve the List of Files Found in a Folder

Submitted by: Anonymous Submission

Save File Statistics for a Folder

Submitted by: David Gray

Search for a Specified File Type

Submitted by: Chris Harrod

Search the Computer for Files Named Plock.exe

Submitted by: Magnus Johansson

Search the Path for a File

Submitted by: Dave Rosen

Send a File to the Recycle Bin

Submitted by: Steve Yandl

Use Robocopy to Copy Files and Their Access Permissions

Submitted by: Anonymous Submission

Use Windows PowerShell to Verify the Existence of a File

Submitted by: Kent Finkle

Verify That a File Exists

Submitted by: Gunter Danzeisen

Top of pageTop of page