Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Adding author name by VBScript

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,47707
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Adding author name by VBScript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Adding author name by VBScript - 5/29/2007 7:30:45 PM   
  msnjony

 

Posts: 2
Score: 0
Joined: 5/29/2007
Status: offline
Can any one tell me how I can add author name in the property of a file using VBScript?
 
 
Post #: 1
 
 RE: Adding author name by VBScript - 5/30/2007 5:24:15 AM   
  dm_4ever


Posts: 2664
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Maybe with DSOFile....
http://www.microsoft.com/technet/scriptcenter/resources/qanda/oct04/hey1001.mspx
http://www.microsoft.com/downloads/details.aspx?FamilyID=9ba6fac6-520b-4a0a-878a-53ec8300c4c2&DisplayLang=en
http://www.microsoft.com/technet/scriptcenter/resources/tales/sg0305.mspx

< Message edited by dm_4ever -- 5/30/2007 3:05:38 PM >


_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to msnjony)
 
 
Post #: 2
 
 RE: Adding author name by VBScript - 5/30/2007 4:51:00 PM   
  msnjony

 

Posts: 2
Score: 0
Joined: 5/29/2007
Status: offline
Thanks.

But the problem is "One drawback to Dsofile is the fact that it can write to the summary information fields only for a Microsoft Office document; a script that tries to assign a title to, say, a text file (a .txt file) will fail".(reference :: http://www.microsoft.com/technet/scriptcenter/resources/tales/sg0305.mspx)

I need to change some properties of text files. So, may be it is impossible.

If any one has any alternative solution please reply me.

(in reply to dm_4ever)
 
 
Post #: 3
 
 RE: Adding author name by VBScript - 5/30/2007 11:51:27 PM   
  dm_4ever


Posts: 2664
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
That's not true...I have tried it with other document types...read that article carefully...

quote:


Like we said, these are the properties found in Microsoft Office documents. But you aren’t limited to retrieving information from Office documents. You can also bind to other types of files using Dsofile; for example, you can bind to your .vbs files or your .mp3 files or whatever. The only caveat is that Dsofile won’t be able to get at any properties other than the ones listed above. For example, .jpg files have properties like Width, Height, and Bit Depth. Useful properties, but you can’t access those properties using Dsofile.


_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to msnjony)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Adding author name by VBScript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts