View Single Post
Old 08-10-2008   #2 (permalink)
Pegasus \(MVP\)


 
 

Re: Assign a Comment


"Gary''s Student" <GarysStudent@xxxxxx> wrote in message
news:99A634DF-BB32-4992-A7C1-0FE1FD6E62C1@xxxxxx
Quote:

>I can manually assign a comment to a file (say a Word doc) by:
>
> 1. right-clicking the icon
> 2. selecting properties
> 3. selecting the Summary tab
> 4. typing in the comment
>
> Can I do the same thing with a script??
> --
> Gary''s Student - gsnu2007xx
An MS Word file is in essence a binary file composed of a
mixture of text and binary code that controls how the text
should appear on the screen.

A VB Script file is a pure text file. There is no room for binary
control code in it. However, you can add comments by inserting
a single quote like so:

wscript.echo "My Name is Gary" 'Console output


My System SpecsSystem Spec