Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Title, Author and Comments in .txt Files
Message
 
To
25/06/2002 11:01:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00672026
Message ID:
00672430
Views:
18
This message has been marked as the solution to the initial question of the thread.
Pablo,

>Is it possible in Visual FoxPro to fill the Title, Author and Comments fields for a txt file?

Don't know how but this works even for .txt files:
oFilePropreader = CreateObject("DSOleFile.PropertyReader")
sFile = GETFILE()
oDocProp = oFilePropReader.GetDocumentProperties(sFile)

? oDocProp.Title
? oDocProp.Author
? oDocProp.Comments

oDocProp.Title = "New Title"
oDocProp.Author = "New Author"
oDocProp.Comments = "New Comments"

? oDocProp.Title
? oDocProp.Author
? oDocProp.Comments
You have to download a dsofile.exe from MS site: http://download.microsoft.com/download/office97dev/Utility/2/WIN98/EN-US/Dsofile.exe
Details can be found in Q224351.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform