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 -


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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