laurin1 Posted November 17, 2005 Share Posted November 17, 2005 I'm working on a coversion program and I need to know how to find all the *.wpd file names in a directory, and then open them in WordPerfect. I pretty sure I can figure the last part out, but I need to know how to get file names from a directory. Keith Davis MCSA, ZCE, A+, N+ http://www.laurinkeithdavis.com Link to comment Share on other sites More sharing options...
herewasplato Posted November 17, 2005 Share Posted November 17, 2005 ...find all the *.wpd file names in a directory...Open a "DOS window" type DIR /? read the options I would pick options like: DIR /s /b "c:\some folder\*.wpd" > c:\list-of-files.txt (untested - could have syntax errors) If you are going to do this over and over, then you might want to make your "DIR" line part of your script. [search the forum for "DIR".] If making this list is a one time thing, then just do it from the "DOS window" (Command Prompt window) and use the resulting text file as part of your conversion script. have fun [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now