Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hacking a WP 5.1 DOS file
Message
 
 
To
31/03/2000 00:49:03
Jill Derickson
Software Specialties
Saipan, CNMI
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00352964
Message ID:
00353156
Views:
15
Everything VB can do with automation we can do better in VFP *L* preparing to ignore the VBer onslaught

this is untested code, but it should at least get you close:
oWord = createobject( "word.application" )
lnFiles = adir( laWP51Files, "*.wp5" )
for i = 1 to lnFiles
   oDoc = oWord.Documents.Open( fullpath( laWP51Files[i,1] + laWP51Files[i,2]  ) )
   oDoc.SaveAs( lcNewPath + laWP51Files[i,1] + ".doc", wdWordDocument )
   oDoc.Close(.f.)
endfor
You can also use the SaveAs() method.

>I just opened one of them, in Word 97, and can see the long file name and type in the "title" property.
>
>My client has something like 10,000 file in this format! So just manually opening it and saving it will not work. I need to write a process to automate it...guess it's time to learn Visual Basic? I was hoping that I could handle it in VFP - generate an exe, etc....any suggestions/ideas?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform