Create these three files on the desktop, with notepad. Run note.vbs, click
the created shortcut after remembering the shortcut icon created, run the
shortcut, and notice the changed icon as the text file has opened. To start
over, run note.vbs again.
---note.vbs--
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Shortcut
Script.lnk")
oShellLink.TargetPath = "my.vbs"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.IconLocation = "notepad.exe, 1"
oShellLink.Description = "Shortcut Script"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save
--end file--
---my.vbs--
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Shortcut
Script.lnk")
oShellLink.TargetPath = "my.txt"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.IconLocation = "notepad.exe, 0"
oShellLink.Description = "Shortcut Script"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save
WshShell.run "notepad my.txt"
--end file--
---my.txt--
Hi mom.
--end file--
Running note.vbs 'resets' the icon, running the icon to open the file,
changes the shortcut icon. Edit the target for my.vbs. Edit my vbs to run
any file. Add to Note.vbs to create more.
--
Was this helpful? Then click the "Yes" Ratings button. Voting helps the web
interface.
http://www.microsoft.com/wn3/locales....htm#RateAPost
Mark L. Ferguson
..
"Fred" <> wrote in message
news

080F2FD-1DA5-454F-B325-...
> Thanks Mark,
>
> This is true. Though if you have many files, 5 or so clicks each adds up
> quickly.
>
> I'd like to be able to toggle a 'read'/'not read' scenario.
>
> Do we know if this is possible?
>
> "Mark L. Ferguson" wrote:
>
>> What you want is the 'attrib' utility.
>> There are a number of file 'attributes' of a file. The 'archive' bit was
>> used to determine if the file had been 'changed' (it's CRC was
>> different).
>> Right click a file icon, then Properties, to see the archive bit
>> checkbox.
>> Originally, the use of the archive bit was to backup any file that has
>> changed.
>> 'Somefile.txt' can have it's archive bit set or unset by attrib.
>>
>> attrib +A <path>somefile.txt
>> attrib -A <path>somefile.txt
>>
>> Detecting the open of the file is an 'event'. I would use the Performance
>> utilities to cause the bit set, but there are a number of ways to monitor
>> file use.
>> --
>> Was this helpful? Then click the "Yes" Ratings button. Voting helps the
>> web
>> interface.
>> http://www.microsoft.com/wn3/locales....htm#RateAPost
>>
>> Mark L. Ferguson
>>
>> .
>> "Fred" <> wrote in message
>> news:3DBFDEF4-FEC8-42C1-9BE5-...
>> > Hi,
>> >
>> > I'm trying to setup a 'read' tag to all files under a folder, to either
>> > flag
>> > on or off once viewed.
>> >
>> > Can this be done using tags or some other means?
>> >
>> > I've searched the forums here and cant find the answer, so wondering if
>> > anyone can help?
>> >
>> > I've tried to set 'tags' on but cant edit or flag files as read in
>> > suggested
>> > the 'details pane'.
>> >
>> > Thoughts?
>>