Create a Dir Listing as a Text File
Posted on 1997-07-27
I’m going to put together a program to replace one
at work. What it does is take about 500 programs with
the names of ####.GL(#is a number) and renames them by removing the Ext part of the name. Then it moves a set number of files to drive A: and props for another disk
this goes on until all files are copied over. It also
makes a printout of the disk directory on drive A: on
each disk. A little history on this program. I work for
an Aircraft company as a CAD/CAM designer and there are programs for the CNC Mills. We have to make backups to
keep on the floor so if needed they can be copied into the machines if needed..
On the existing program I was able to make a text file
to use as a listing of the files to be moved.
Comamnd:=Dir C:\Temp\*.* /B >DirList.Doc
Then I user this file to Rename and move the files..
Is there a way to get this dir listing in Delphi 3 like the one I have above. Then I can use it to rename and move the files. Or if there is a better way to approach this project..