Home  »  Company  »  Blog  »  Products  »  User Question of the Month: Create a Directory Listing of Files

User Question of the Month: Create a Directory Listing of Files

IDM webmaster

One of our users recently asked our support team:

Is there a way to get a directory listing in UltraEdit? If not, this would be a great feature.

There are a few ways you could do this, but the easiest way is to use the built-in functionality of Find in Files. To retrieve a directory listing with the Find in Files, simply leave the "Find What" box empty. UltraEdit will list the files in the specified directory that matches the directory and file type filter.

So, if you wanted to see all files in "c:\temp\" use the following parameters:

Find What: (empty)
In Files/Types: *.*
Directory: c:\temp\

Find in Files

If you wanted to see all text (txt) files in "c:\temp\", you can use the following parameters:

Find What: (empty)
In Files/Types: *.txt
Directory: c:\temp\

Similarly, if you wanted to see all text (txt) files that start with the name "hello" in "c:\temp\", you can use the following parameters:

Find What: (empty)
In Files/Types: hello*.txt
Directory: c:\temp\

Back to Top

Comment on this post

Required fields are marked with *.


mark garrett
Posts: 6
Comment
find in files
Reply #1 on : Wed May 21, 2008, 09:23:43
Fantastic!
This is akin to the DIR command from DOS, which has been missing ever since Windows took over the world.
Follow up question: How can I print what is shown in the lower screen (the list of found files)?
Ben
Posts: 6
Comment
re: find in files
Reply #2 on : Wed May 21, 2008, 16:31:15
Mark,

Thanks for your post. If you mean print from the output window, you'd either 1) change the Find in Files to send the results to a new edit file that can be printed or 2) right-click in the output window, select "Copy to Clipboard", and then open a new file, paste, and print.

Thanks, Ben
Last Edit: May 21, 2008, 17:17:24 by idmadmin  
mark
Posts: 6
Comment
re: find in files
Reply #3 on : Wed May 21, 2008, 17:14:04
Yes, and Thanks.
Both options (1) & (2) work.
Mark
Ed
Posts: 6
Comment
re: Find in files
Reply #4 on : Thu May 22, 2008, 04:16:18
Hi guys,

You have even more options !

First DIR (and most other DOS commands) are still alive and well in Windows. I use them all the time. (Whoops, I guess I'm showing my age!) Open a command box and type DIR /? and you'll find it still has all the power as before. Type HELP and you'll see the other command line utilities that are available. I still do alot of batch file programming.

If you want to stay in UE, click Advanced>DOS Command or just press the F9 key. Enter the DIR command (with any options), leave the working directory blank and hit <ENTER>. The results will automatically be placed in a new document window - no copying/pasting the output window. For instance, if enter the command

dir /on /b e:\syn\cp7514mods\*.cbl

UE will open a new document window listing all of my CBL files in e:\syn\cp7514mods sorted by filename and in "bare" format (no directory or timestamp info). I do this alot as a starting point for creating a new batch file.

Another option is using Find in files, but redirecting the output to a new document window. Just enter the parameters as Ben described, but check "Results to Edit Window" before clicking "Find". The results will go straight into a document window - no copying/pasting required. My only beef with this method is I don't have all the familiar options for sorting/formatting with Find in files that I do with the good 'ole DOS DIR command. Plus the command throws a bunch of extra formatting lines in the output that I then have to sort to the top and bottom of the document before deleting.
Ben
Posts: 6
Comment
Re: User Question of the Month: Create a Directory Listing of Files
Reply #5 on : Thu May 22, 2008, 08:29:11
Hi Ed,

Thanks for sharing this. Yes, there are several different ways of getting what you need and running the DOS command does provide some advanced output options. We actually suggest this method in our user tool power tip as well. Great feedback!

Thanks, Ben
Spike
Posts: 6
Comment
DOS still lives!
Reply #6 on : Thu May 22, 2008, 11:28:36
I am a photographer and use the files listings to create selection grids for my clients. I use the DOS command "DIR >FILES.TXT" to create a text file of the directory listing which contains the client's files. I next use column mode in UltraEdit to select & remove the unwanted information (file size, dates, etc). I then copy the remaining list of files and paste it into an Excel template which then prints out & goes to the client for selecting the photos they want printed. The redirection ">" command sends the DOS directory command to a text file rather than the screen. Simple solution, and made even better with the excellent editing features of UltraEdit! I haven't tried the "find in files" option (yet), but will give it a try and see if it makes the job even easier.

Back to Top

Subscribe to our blog

Get software updates, company news, staff editorials, and power tips in your RSS reader.

IDM Highlights newsletter

Sign up now for...

  • Software Powertips
  • New Releases
  • Update Notices
  • Cool Tools, Specials
  • Company News