Jump to content

Recommended Posts

Posted

It may be helpful for someone ! :)

Get all filename in the current directory :

@dir /b /s *.*

Note : Replace *.* by *.bmp if you only want to take filename of bitmap files.

Note 2 : Delete /S if you don't want the content of the ubdirectories.

This scipt take all filename of the current directory and past it into a .txt file (called list.txt)

@echo Off
title Get all filename

   Find /V " " < list.txt > %TEMP%.\Myfile.tmp
   @dir /b /s *.* >>%TEMP%.\Myfile.tmp
   Copy %TEMP%.\Myfile.tmp list.txt
   Del %TEMP%.\Myfile.tmp

exit

That's it ;) Tell me if this script help you ...

Indigo -


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...