Search : in
By :

Reading file name using batch file

rahul, on Sep 15, 2009 4:07:09 am BST 
 Report this message to moderators

Hi,

how to read the most recently create File Name present inside the folder to a Variable using batch file.


if i have 3 or more files Created in the Folder (ie Folder1) i need to get read the file name which has been created most recently(ie ABC2.txt).

Filename Created Date
ABC.txt 14/sep/2009
ABC1.txt 15/sep/2009
ABC2.txt 16/sep/2009

Configuration: Windows XP
Firefox 1.5

Best answers for « Reading file name using batch file » in :
Renaming multiple files in batch Show Renaming multiple files in batch Native features Using a third-party program Renaming a large number of files can quickly become tedious. Fortunately, there are tools to automate this task in many cases: Native features On Windows...
How to read a file line by line ShowHow to read a file line by line Intro Tips Bonus Intro One of the most common errors of learning scripts bash on GNU / Linux is to read a file line by line, is to use a loop "for" (for line in $ (cat file.txt) do. ..), which in this...
Writing in batch in text file ShowWriting in batch in text file To write in a file text, you just have to use a redirect: echo text > output_file.txt To write in an existing file: echo " Write at the end of the file ">> output_file.txt
How to read and create a .NRG file ShowHow to read and create a .NRG file What is a .NRG file? Burn a NGR file with Nero Burning ROM Burn a NRG file with Alcohol 120% What is a .NRG file? A file with the .NRG extension is a CD image file generated by softwares like Nero...
Download Instant File Name Search ShowAlthough the research already exists on Windows, sometimes you need more specific tools for specific tasks. Instant File Name Search Instantly search files by name on your computer or network. Advantage It has a simple and convenient interface...
Download NTFS Reader ShowIt is now possible to have access to NTFS readers from MS DOS. NTFS Reader DOS Disk Boot allows the reading of NTFS readers from MS DOS. It supports long file names as well as well as compressed or fragmented files. NTFS Reader DOS Disk Boot...
MS DOS Files and directories ShowFiles in MS DOS In a computers data is stored in files. When you run a program, MS-DOS processes the data stored in the file and passes it to the system. In MS-DOS a file can be any size, however the file name is more restricted, it can only have...
Linux - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines...
Operating Systems - MS-DOS - Tips ShowSetting the CD-ROM drive The CD-ROM drive is configured in the config.sys and autoexec.bat system files. The CD-ROM drive device driver must be configured in the config.sys file (even if the device is automatically detected in Windows). To do...