Vbscript Get Folder Modified Date

Sometimes a library contains unique methods, sometimes they are equivalents to methods in another library. In DOS, a batch file can be started from the command-line interface by typing its name, followed by any required parameters and pressing the ↵ Enter key. Query Active Directory for User(s) last login: Queries the Active Directory/Domain for a user last login time or all users (output in. I haven't got much experience with cmd but I remember a couple of months ago I made a batch file that listed all the directories and files in the given folder- there's a function (think it might be /a or /e) that writes the date each file was modified- you could tell it to search the output text file and make it compare the dates. In this post we will see how to get a list of files in a folder into Excel. cat-file that includes all SHA1-hashes and names of the files I want to copy. txt file names into a variable named User::FileName and imports the data. Thus i need to get this date last save from excel file instead of date modified. I'd like to have this so I can run it from my desktop. I know how to copy all files, but I like to copy o Copy files with certian date creation - VBScript - Tek-Tips. The FileDialog box should now appear - navigate to the folder that you want to find the contents so the target Folder name is in the top 'Look in:' field Click OK The names of all of the contained Files (and their file type extensions e. cookie extension (IE11 - version 11. 2 - Count the number of files for common file types (e. How to get the Function return value. 6: Folders. Two types of permissions are very widely used: traditional Unix permissions date back many decades to the earliest days of Unix. In Windows I want to list the files from the drive in all the subfolders with the following attributes From all the subfolders File name File Creation date File Last. I have a file which gets created/modified on a PST machine. CopyFile source, destination [,overwrite] source Receives the location of one or more files to be copied. Click on the search box or press F3 button on the keyboard. If you absolutely insist on saving files from WP into any variety of the Microsoft Word for Windows format, and you then cannot open the files in Microsoft Word 2003, you may download this Visual Basic Script file, which will enable Word 2003 to open such files; download the EnableWinWord20Import. I know how to get today's date vba: Call MsgBox (format(date, "D. It Provides a list of all files contained within a folder. At this point the rest is child's play: we can now use a For Each loop to loop through the collection of files and - if we choose - do something to each and every one. What am I doing wrong? CODE 1 *****. Several VBScript samples are included in VBScript Samples section. Syntax: VBScript File Object DateCreated Property. Note: An Archive file is not the same as a backup file. be used to monitor a directory where a fax is converted into a email. The Microsoft Access FileDateTime function returns the date and. The only problem this can cause is any errors and/or messages from the script will appear as popup boxes. Re: VBS - Check if a file is older than X days old. To get only pictures as search results, select Images. bat and SDate. But if you really want to, and can't get to the internal functionality of it, there's another option. Output it to the browser and you are all set. Find out more. BAT, when present, is automatically executed, so any commands that need to be run to set up the DOS environment may be placed in this file. if %%X is a file name, %%~tX expands to a string (in your local format) which is the date & time the file was last written. Title Description Rating My Rating; Count the users on a Citrix Farm (not Published Apps) This script counts every ICA connection (every logged-on user) of every server in the Citrix XenApp Farm. All files older than a specified number of days will be deleted. Student Name: Maria De Los Angeles Cruz Chivichon Date 12/13/2015 VBScript Database Query Lab Report Task 4: Write and. First initiate fso object to perform interaction with objects. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. So just creating a. The operations are specified using variables, generic features of VBScript, and M-Files API. I do not need to delete the root folder, only the child folders. So how can I "open" this cat-file and get the individual hashes and. FoundFiles(I) Next I End Function. vbs & cscript. NTFS-formatted drives may cache information about a file, such as file creation time, for a short period of time. The performance benefits of reducing the profile folder size may not appear until the second time the script is run. GetLastAcessTime Method. I got bored at work and decided to try writing some startup scripts. The remaining reference is the one that you need. The instance will be the file pointer for us. This function will return the name of the most recently modified or the least recently modified file in a specified folder. Is there a way to change the date when a file was modified/created (which is shown in Nautilus or with the ls -l command)? Ideally I am looking for a command which can change the date/time stamps of a whole bunch of files to a certain amount of time earlier or later (e. In most cases, you can pass a VBScript date to a TestComplete routine or vice versa and get the correct results. vbs, and run the file. Before running the macro, we need to specify the path of the folder in the text box. First is the VBScript statement. The first is the date it was created, the second is when it was modified, and last is when it was accessed. It enables to modify conventional file attributes, such as read-only, hidden, system, encrypted compressed, temporary and date /time parameters, including creation date , last modification, and access. You can choose which file attributes to include in the output. iimRunner_ASP. For Home 0 Alerts. GetFiles() returns an array of filenames in alphabetic order, I could find precious little information on the net so I thought I'd share what I came up with :-. Generic VBScript class structure for implementing OAUTH. vbs & cscript. Demonstrates how to send a HEAD request to get the last-modified date of a file on a web server (without downloading the file). Basically I have a database dumped into a directory on a daily basis and I want to be able to copy the database from the first of each month to a different directory so that I can delete have all the other files in the folder deleted. vbs passing it the filename along with a couple other arguments. As this is an array. Why are some scripting commands specified on WinSCP command-line in a batch file not executed/failing? How do I transfer new/modified files only? How do I create script that synchronizes files and deletes synchronized files from source afterward? Why the switches do not work in my script?. This function will return the name of the most recently modified or the least recently modified file in a specified folder. This script gives me the date and time of the last time the file was modified. First initiate fso object to perform interaction with objects. Original Date/Time. chm Documentation for Windows 2000 Resource Kit Tools, describing the required files, syntax, and other usage issues, along with examples for using these tools. Here's how you can quickly delete files and folders older than however many days you choose. User Information. Privacy Terms of Use. Files are listed in errors if they don’t exist in one of the directories, the user lacks permission to read them or if the comparison could not be done for some other reason. BAT is pure script (hybrid batch/JScript) that runs natively on any Windows machine from XP onward - no 3rd party exe file required. Threat's profile. People get hired, quit, move to different extensions. Download Now. This site uses cookies for analytics, personalized content and ads. 3) notation. Hi, I am currently working on a stored procedure to bulk insert a file into a database. VBScript with Classes; Debuging Java n Vbscript; Array. Hey, Scripting Guy! On my file servers I periodically want to check a folder to see if that folder or any of its subfolders have files that are no longer being updated. Please see " The Description and the Index page " for the conditions of usage and other such information. We will show you how to use Excel to view Files and Folders details in Windows, by importing all files and folders. It was used for content reviewing before the migration. DatePart A Function, which returns a specified part of the given input date value DateSerial A Function, which. c:\windows\folder\createalert. vbs Measure response times and use them in script. How can I get this date and save it to my database. It doesn't export each file modification time and shows only the most recent time of changes, but probably it helps you. Known Issues: Janitor. The creation date can't be directly modified in native batch or vbscript. The DateCreated property returns the date and time that the specified file or folder was created. Hi, Thanks, i have seen how to solve the problem using client side script, the new problem now is that since the function only works with vbscript, it will limit the scope of my software to only people who have vbscript installed on there browsers which is not desirablei may use a form in place of "input box" to get my "yes" or "no" choice from the user. Dear Sam, We have few servers and need to check if the log files of particular services are getting updated every second you can say. I want to take this concept and expand it a bit. Sub hentUbs() Findes End Sub Function Findes() Dim blah As FileSearch directory = "U:\FI-Euro\IG Corporates\HF\Tool Construction\UBS" Set blah = Application. Recursive Files. use a function to get the first. Queer Eye star and sought-after designer Bobby Berk gets organized with Adobe Scan, Adobe Acrobat, and Adobe Sign. Resolve relative paths to absolute paths via "REALPATH". Suppose I have history data i. ReadAllText – MSDN – method to read whole file into string; File. Example: MyDate = "October 19, 1962" ' Define date. This is the only reason that the username is part of the cookie file name. New spreadsheets will be created a couple times a week, so I would like the code to be able to search this folder for the most recently modified document and then open THAT document. 12/19/2018; 2 minutes to read +1; In this article. Access 2003, unable to change date format from excel; Creating a "Last Date Modified" for the same date but on different forms; get Date Modified from OpenFileDialog; Trapping the Last record change date from a database. How to use: 1) Download the attached script or copy and save the below as something like report_file_properties. 0 / Thunderbird 8. Dim sOriginFolder, sDestinationFolder, sFile, oFSO, oShell Set objShell = CreateObject("Shell. Hi, can someone provide me the function for the file's date created, and not the modified date? filetime() is giving me the modified date and I need the created date or content created date. and how to use VBScript. bat, Version 3. Basically I have a database dumped into a directory on a daily basis and I want to be able to copy the database from the first of each month to a different directory so that I can delete have all the other files in the folder deleted. The file name contains the date and time of creation, but before modifying the files, I could sort them in descending order by date, but now all the files are modified when the macro runs. Click on the search box or press F3 button on the keyboard. Files are listed in errors if they don’t exist in one of the directories, the user lacks permission to read them or if the comparison could not be done for some other reason. DateLastModified) rather than the "Date Created" (objFile. -ctime is n*24 hours, so 0 means within the last 24 hours, 1 means between 24 and 48 hours ago, 2 means between 48 and 72 hours ago, etc. Neither does opening the file without making any changes to it. Because of this, the original copies of. There are also open source tools that can inspect a media file's metadata, such as EXIFtool which is geared towards managing the metadata of media created by digital cameras. It outputs file information to a text file. ), the job of matching file names to patterns normally falls to the shell. File is an Object. DateCreated) property of each file, & with the list of files (presently) being sorted into descending order, the first file read from the resultant recordset would be the latest file modified within the. PowerShell : Get the most recently modified file for each directories August 20, 2012 Jey Powershell , Windows files , Get-ChildItem , powershell , windows The most efficient way to work on Windows is using PowerShell. For example, to get modified time/date only for pdf files, we can use the below command. Hey, Scripting Guy! How can I list all the files in a folder, ordered by creation date?— CL Hey, CL. It's likely that your only sensible option is going to be a reformat and reinstall. There is a batch job which runs and loads the flat file to that location. It uses a Stack instance. If ommitted, all ' files will be archived ' /a Directory to archive to. For example, they all start with AH_FASTAG RESULTS FOR, but then they are different from then on. In the second iteration, I need to be able to open the 2nd most recently updated file for reading and close it etc. vbs) Basic tutorial on how to get a file or folder to find out certain properties about it, such as its name, size, type, location, date, etc. The performance benefits of reducing the profile folder size may not appear until the second time the script is run. This HowTo is only about OpenSource (and free) solutions. 3) Use the dialog to browse the folder you want to report on and press OK. com wanted to send all of the files in a folder as email attachments, one attachment per message. bat file that can be used to reconstruct a copy of the original file. However I made an exception for the following "special" case profiles - Default User. For a list of common I/O tasks, see Common I/O Tasks. First we need to get the the date for current day – 7 days and use it in the below command. To execute this file, run: cscript. Is there any way using SSIS to check the modified date on the flat file? Thanks in advance. The first is the date it was created, the second is when it was modified, and last is when it was accessed. This script doesn't allow you to double click on the original file to change the extension. But if you really want to, and can't get to the internal functionality of it, there's another option. I wrote this VBS code to copy "Date Modified" from files in one folder to another folder. VBScript » Objects » FolderVersion: 3. At the same time, so are empty folders and files in nested folders. vbs - Function to calculate the date of Easter. 12/19/2018; 2 minutes to read +1; In this article. The Windows tab allows you to make changes to File Open and File Save dialog boxes containing the Places Bar. And sometimes the folders are on top, other times the folders are at the bottom. I usually have the need to rename several files located on a particular folder. For one reason or another, sometimes you might just want to change the attributes, and since Windows does not offer an easy way to do so, I wrote a small easy-to-use program to change. I found a starter-script on the web and modified it to suit my needs:. WiseSoft Bulk AD Users is a tool that makes it easy to perform bulk updates to Active Directory User account attributes. In Windows I want to list the files from the drive in all the subfolders with the following attributes From all the subfolders File name File Creation date File Last. Version: 2. Student Name: Maria De Los Angeles Cruz Chivichon Date 12/13/2015 VBScript Database Query Lab Report Task 4: Write and. Search Files By Last Accessed Date This project is in response to "Need PS script to search files by date accessed" script request: HEREThis is a script that will export a csv file containing the files for files in a certain directory (including sub-directories) within a date range. The icons are flatter and simpler in design. The SFC shows only 13 POQ sets - there should be at least 60 in a 32-bit installation, and its til lmanaged to find 6 file errors which it couldn't fix properly because of access denied errors. Sort Folder Contents with FSO Eventually, there comes a time when you need to display the contents of a folder and have it sorted by name, size, type, date created or some other criteria. Two types of permissions are very widely used: traditional Unix permissions date back many decades to the earliest days of Unix. The DevGuru VBScript Quick Reference is the definitive VBScript reference and tutorial resource on the web, with hundreds of ready to use examples for you to include in your projects. If you're asking for a way to put a time stamp on each sheet individually any time there are any changes anywhere on each sheet, then that would require a worksheet_change macro. By file property, I mean the Username who created it, File size, Creation & Modified date, Computer name in which it was created etc. Hey, Scripting Guy! On my file servers I periodically want to check a folder to see if that folder or any of its subfolders have files that are no longer being updated. however in the guide above we are calling a script file using cscript. It Provides a list of all files contained within a folder. The "-type f" tells find to only locate files (ie not directories and other special file types) and the "-ctime 0" flag tells find to locate files that have been modified between now and 24 hours ago. I'd like to have a button that will open the most recent version of a file in a folder. That portion works fine (most of the time). There are two key elements to the VBScript tool setup. Find files modified in the last 7 days. get-response-times. C:\> cscript CleanRoamingProfile. Suppose I have history data i. xls, ppt etc ) specified in maybe an array) in each folder and report thte total number for each folder and. com FtpWorkingDirectory is the directory or folder on the Ftp server to get the list of files from. Windows 7: Display file date modified time including seconds. Work with binary files in VBSscript - read and write local and remote files (WSH, File & data transfer, Functions, VBScript) 0. If someone wants a copy I print it off, but it only showed the date and time it was printed -- not necessarily the most current information. It is these print statements that I want to get into the file, and that link suggested the VBScript method you see above in my own code. The contents of a folder never sort by date modified, they are always grouped by folders/files. I need a script that tells me all the folders (and subfolders) NOT accessed within the last 771 days (10/1/2009). What I'd like to do is check each file in each folder to see if they've been modified in the past 90 days. CopyFile source, destination [,overwrite] source Receives the location of one or more files to be copied. This can be modified to create XML or CSV outputs. Drives FileSystemObject. I've got a basic programming background and understand the logic well enough. Forbiks is a worm that spreads via removable drives and network shares. To work with the properties and methods of the File object, you will have to create an instance of the File object through the FileSystemObject object. you'd add the statements and run the script with a -verbose paramater provided to see how fast things operate. Files smaller than this will be deleted. I need to know these properties so I can decide if it is a zip or compress action that I should take. vbs - Get Date, Time and Daylight savings. It Contains methods and properties that allow developers to create, delete or move a file. I haven't got much experience with cmd but I remember a couple of months ago I made a batch file that listed all the directories and files in the given folder- there's a function (think it might be /a or /e) that writes the date each file was modified- you could tell it to search the output text file and make it compare the dates. I recently had a need to list the properties of all files in a folder and its sub folders to find files that had not been used in a long time, or files where the owner had left. VBScript » Functions » Replace Syntax: Replace(String, FindSubstring, ReplaceSubstring, Start, Count, Compare)String The String argument is the string to be searched. txt files in a specific folder that have been modified or created today. So you can quickly shift to a certain worksheet by just clicking the sheet name in the index sheet. vbs ' List User properties as displayed in ADUC On. That will get you all files created, including the ones from the current day. Let's look at some Excel FILEDATETIME function examples and explore how to use the FILEDATETIME function in Excel VBA code:. How to Copy Individual Files and Rename Duplicates with Powershell Kris in PowerShell Subscribe January 8, 2015 There are many factors to consider when copying files within a script. overwrite The overwrite parameter is a Boolean. Folder Dim NextRow As Long 'Find the next available row NextRow = Cells(Rows. This report can dynamically switch between NTFS date/time stamps (e. The VBScript's Attribute property sets or returns the attributes of files or folders. DateLastModified property. Starting from Gecko 8. ) Function cat underlies the functions for exporting data. The FileDialog box should now appear - navigate to the folder that you want to find the contents so the target Folder name is in the top 'Look in:' field Click OK The names of all of the contained Files (and their file type extensions e. GetFile (filename) Returns the File object for the specified file name. This post contains a batch file, and a Powershell script that will do this. Reduces the usual 7 clicks thorugh IE Settting to 1 click. This is based on the date the file was created. However I only want to perform the insert when the file has been updated (by looking at when it was last. Read more April 29, 2019 How Entrepreneurs Fuel Company Growth with Adobe Document Cloud. But, I managed to tweak the code a little bit to so that after copying the files, the files from the destination folder are opened to perform the operations on it. It is possible that a file's Last Modified date is already older than the number of days you specify, even if. 5985 Print Item List - a button for Excel needs to be added. This should work for every user having a profile folder under C:\Documents and Settings. Does Windows Explorer show the correct 'Date Last Modified'? Using this code do any of the files show less than 60? For each item in files ' If DateDiff("N",item. Fun and Knowledge Blog contains QTP Scripts, Telugu Songs Lyrics,Latest Telugu Songs Lyrics,QTP Excel sheet,QTP Outlook Automation, QTP Blog, QTP Interview Questions, Quick Test Descriptive Programming, Testing, Software Testing, Manual Testing Interview Questions, QTP Questions, QTP sample code, QTP Regular Expression, QTP Actions, QTP Object Repositories, Quick Test Object Repository, QTP. The "-type f" tells find to only locate files (ie not directories and other special file types) and the "-ctime 0" flag tells find to locate files that have been modified between now and 24 hours ago. I have this VBscript that will rename all the files in a directory to the computer name and last date modified. 3) notation. RPA-Visual-Basic-Scripts-VBS / Files Operations / Check File Created Date Between Range Date: Check File Modified Date Between Range Date: Get All Files In Folder. This script gives me the date and time of the last time the file was modified. WiseSoft Bulk AD Users is a tool that makes it easy to perform bulk updates to Active Directory User account attributes. BAT file set up the system date and time, initialize the DOS environment, load any resident programs or device drivers, or. [C#] File Attributes – how to get or set file attributes [C#] Get File Time – how to get last modification time of a file [C#] Open File With Associated Application – how to launch the default application; See also. I haven't got much experience with cmd but I remember a couple of months ago I made a batch file that listed all the directories and files in the given folder- there's a function (think it might be /a or /e) that writes the date each file was modified- you could tell it to search the output text file and make it compare the dates. Thinking about it a little: the script is reaching out to each system, getting the data thru wmi, pulling it all back to the local machine and th. Copy files and folders in VBS? to have this include subdirectories and I also need it to not move files that are already existing with the same modified date (I. 2 - Count the number of files for common file types (e. It also deletes all files with. How can I get this date and save it to my database. Syntax: VBScript File Object DateCreated Property. It is written using a combination of HTML forms and VBScript code. I hope the script will delete a folder and all its contents ba Delete Folder & Contents based on modified date - VBScript - Tek-Tips. It also has to copy all files within each sub folder whilst appending the date and time to the file. (VBScript) Get Last Modified Date/Time of Files in a Remote Directory. MyShortDate = CDate(MyDate) ' Convert to Date data type. It has been working great with the exception of a few days that fall on the 8th and 9th. Application". (VBScript) SharePoint -- Get Files in Documents Folder. Click here it's easy and free. Thank you very much for your post. I can't use VBA as macros are disabled and am finding it difficult to change the GetFolderPath() function to work in VBScript. It also drops an AUTORUN. You can narrow the files to be examined by specifying one or more file extensions or you can examine all files in the folder. Suppose I have history data i. Summary: Use Windows PowerShell to find files that were modified during a specific date range. By joining you are opting in to receive e-mail. arcgis-desktop labeling python-parser vbscript. Hey, Scripting Guy! How can I list all the files in a folder, ordered by creation date?— CL Hey, CL. Several different VBA libraries contain methods to retrieve file properties or to manipulate files. I need to loop through the files in a given folder in descending order of 'Last Modified Date'. Re: Loop Through Files in Folder and check DateLastModified A simple function to loop through the folder using the FileDateTime function along with the DIR function to get a list of all files to make sure everything is dated this month should do it. In order to get a file's Last Modified Date with SSIS 2008 or later, you need to do three. string localPath: Full path to download the file to. Sub hentUbs() Findes End Sub Function Findes() Dim blah As FileSearch directory = "U:\FI-Euro\IG Corporates\HF\Tool Construction\UBS" Set blah = Application. Try these code to get the property of a file in the computer folder. Windows Installer: Check if a product code is installed. To execute this file, run: cscript. Can anyone help me, I need a script to delete files based on creation date. List details of all the files within a folder using VBA in Microsoft Excel In this article, we will create a macro to gather details of all the files within a folder. Work with binary files in VBSscript - read and write local and remote files (WSH, File & data transfer, Functions, VBScript) 0. I can't use VBA as macros are disabled and am finding it difficult to change the GetFolderPath() function to work in VBScript. Good morning! I am going to post the script that I am using below. Everything is working fine, but I would like to get rid of wget and use a pure vbscript solution to grab and store images. I now have the following 2 sets of codes that work depending on the browser:. Embedded VBScript file in SAS® code to generate e-mail. The Americas United States Brasil Canada. With the Create List of Sheet Names utility of Kutools for Excel, you can easily list all sheet names with hyperlinks to corresponding sheets in current workbook. Please see " The Description and the Index page " for the conditions of usage and other such information. No new notifications at this time. But, I managed to tweak the code a little bit to so that after copying the files, the files from the destination folder are opened to perform the operations on it. You need to loop through all of the files in the directory (you can use the IO. +8 hours or -4 days etc. use a function to get the first. bat) or executable (. from the command line?. If the directory is not empty within the "age_threshold" it should result in an alarm. can't see files in shared folder Last modified by Jane 3 hours ago my client shared a folder with me. The remaining reference is the one that you need. Delete files older than 7 days windows. It Provides a list of all files contained within a folder. Notepad is the best option when you want to create a quick note. First is the VBScript statement. The date created property on the PC is relative to the time the file was synchronized, and not the time the picture was taken on the phone. These tools can include things like location, color, size, and the date a page was. This MSAccess tutorial explains how to use the Access FileDateTime function with syntax and examples. IF "%1" == "" S:\AISHA\MSG *. And that's doubly bad because many of you are probably already a bit distraught over the fact that VBScript provides no way to modify the last-accessed date of a file. Note that the FileSystemObject is a component of the Microsoft Scripting library, which requires Excel 2000 or later. Description. bat and SDate. When set for a directory, this permission grants the ability to read the names of files in the directory, but not to find out any further information about them such as contents, file type, size, ownership, permissions. Find files that are taking lot of space on your system. One of these files I want to copy the "modified (or created) date. PowerShell) submitted 3 years ago * by Broaderators [ ] Hello, I'm trying to write some kind of script that will allow me to delete all the old versions of files in a directory, leaving a directory with only the latest version of the file. What I need it to do is rename only files of my choosing by it's extension. Re: VBA Function for Last Modified User using FSO The Shell object can be used to retrieve extended file properties without opening a workbook. Here is the modified code:. 2Tware Change File Date Free, Funduc Software Touch 64-bit, SafeCopy Free. Suppose I have history data i. You want ls -lA | wc -l to skip the. Use VBA to Change the Date_Modified for an external file Hi, I am working on a data retention project and would like to be able to change the Date_Modified, and perhaps the Date_Created using MS Access. Windows Explorer is a ubiquitous and under-appreciated component of Windows 7. Sometimes the task is not that easy. This is exported data from file server and dates that are modified,. Recursive Files. What I need it to do is rename only files of my choosing by it's extension. The FileDialog box should now appear - navigate to the folder that you want to find the contents so the target Folder name is in the top 'Look in:' field Click OK The names of all of the contained Files (and their file type extensions e. That portion works fine (most of the time). I have been using wget and a combination of batch files and vbscript to pull images from a few Axis 2100 network cameras. 0 / Thunderbird 8. How can I use Windows PowerShell to find all files modified during a specific date range? Use the Get-ChildItem cmdlet to collect the files, filter it to the Where-Object cmdlet, specify the date for the LastWriteTime property, and set greater than. To get the modify date of a file we can use set "MDate=%%~tF". I need to create a file through a c-shell script which contains only the date and time that the file was created. I am using SSIS /SQL Server 2008 and I need to get file attributes for specific data files, then put them into a sql table. If you use the Date function with a Gregorian calendar, the behavior of Date$ is unchanged by the Calendar property setting. need suggestion, · You need to add a. I'd like to take the date information I have and directly adjust the Last Modified Date for each file. In addition to working with file and directory names, Mercurial lets you use patterns to identify files. This VBScript drops copies of itself in all removable drives. The below script helps me enumerate a folder and list the file attributes.
<