Batch Converting Many WordStar (.ws) Files to PDF
I had previously worked out a command that would convert all of the Microsoft Word (.doc) or WordPerfect (.wpd) files in a folder to PDF. Now I wanted to try that on a batch of old WordStar (.ws) files. This post discusses that task.
As described in the previous post, I set my PDF printer (Bullzip) to print without opening the resulting files and without interruptions, except that I think I did let it notify me of error messages. I didn't want to have to approve each conversion manually. Also, I had named the WordStar documents to have a .ws extension, even though that extension was not necessary back in WordStar's heyday.
I had also configured my copy of Word 2003 to recognize and open .ws documents. I was not entirely sure how I had managed this. My records suggested two possibilities. One was to run a .reg file containing the following lines, so as to modify the registry in some hopefully appropriate way:
Windows Registry Editor Version 5.00The other possibility was that I had apparently found a program that required me to add certain files to the Windows 7 Program Files folder, including particularly one called Wrdstr32.cnv. A search suggested that anyone hoping to download such files from a virus-free source had best be using something like WOT. It had been a while since I had set up my system, and in any case I had not tested these options individually to determine whether they were useful or necessary. For all I knew, Word was capable of reading .ws files without any of this. The point is that, at least on my system, Word was now capable of doing so.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Text Converters\Export\WordStar]
"Extensions"="ws"
"Name"="WordStar 3.3 - 7"
"Path"="C:\\Program Files\\Common Files\\Microsoft Shared\\TextConv\\Wrdstr32.cnv"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Text Converters\Import\WordStar]
"Extensions"="ws"
"Name"="WordStar 3.3 - 7"
"Path"="C:\\Program Files\\Common Files\\Microsoft Shared\\TextConv\\Wrdstr32.cnv"
With all that in place, I was set to run a command that would hopefully process a lot of WordStar files without much intervention from me. I started Notepad, created a blank file called Converter.bat, and put this line in it:
FOR /F "usebackq delims=" %%g IN (`dir /b "*.ws"`) DO "C:\Program Files (x86)\Microsoft Office\Office11\winword.exe" "%%g" /q /n /mFilePrintDefault /mFileExit && TASKKILL /f /im winword.exeI saved Converter.bat and put it in the folder containing the .ws files. I probably could have used Excel to mass-produce commands that would have done the conversion in-place, for .ws files scattered among multiple folders, but my approach to that sort of situation tended to involve bringing the files to be converted together into one folder anyway, and then putting their converted replacements back where the original files had come from.
I ran Converter.bat in the .ws folder. It ran successfully; I had PDFs in my Bullzip output folder for each WS document in the input folder. Mission accomplished.
2 comments:
An earlier post treats the similar problem of converting many text files to PDF using a different approach.
there is a site that automatically sets the paths to install the appropriate files to the areas required wordstar zip
Sincerely,
Clem
(e)clementereyes at yahoo dot com
Post a Comment