Thanks in advance,
Abe
registry hex-crap conversion, or MS
digital rights dominative preservers,
is scriptable.
========
In the long run, if you were an enthusisat (?),
you would still have to learn either/or/both
wsh,javascript, and HTML/XML [definitely].
+++++++++++
"Date Picture Taken" - Yahn
"Abednego" <anon...@discussions.microsoft.com> wrote in message
news:036c01c3a696$b206ef50$a601...@phx.gbl...
I have a digital camera that takes pictures and gives
them names I don't like. When I move the pictures to my
computer, I rename them as the date they were taken. If
more than one picture was taken on that date, I change
the name slightly by adding a "_001", or "_002" and so
on, so that the pictures will still reflect the date.
I have a script that pulls off the date and renames the
pictures, but it's getting the wrong date. It's using
the date that the picture was moved to the computer.
The "date picture taken" is correct, however, and I want
to use that property to rename the picture to that date.
Again, this is a local VBS file. This is not something
that's running thru a webpage or anything.
Thanks!!
Abe
>.
>
Hi Abe,
We're still trying to figure out this "name" character. Most of his posts
are, shall we say, hard to understand.
Anyways, check out this article:
Check out this thread as well:
http://tinyurl.com/u9yt
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Hi
That information is stored in EXIF tags.
The free image component found at http://www.reneris.com/tools/default.asp
should be able to what you want to do I think (some EXIF documentation/links as
well). This is a COM component (dll file) that you need to register with
regsvr32 before you can use it from your VBScript.
Another component: ListPics
http://www.iisworks.com/listpics/
Some Python code
http://topo.math.u-psud.fr/~bousch/exifdump.py
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter
Google Search: "shell.application" extendedproperties OR getdetailsof
http://www.google.com/search?q="shell.application"%20extendedproperties%20OR%20getdetailsof&num=100&scoring=d
Michael Harris
Microsoft.MVP.Scripting
Windows 2000 Scripting Guide
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
TechNet Script Center Sample Scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942
WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
> Abednego wrote:
> > Is there a way to use VBS to return the property that
> > appears in the 'My Pictures' folder? The property in
> > question is listed when you select 'details' and is
> > denoted in the column headers as "Date Picture Taken".
> >
>
> Google Search: "shell.application" extendedproperties OR getdetailsof
> http://www.google.com/search?q="shell.application"%20extendedproperties%20OR%20getdetailsof&num=100&scoring=d
This works on a WinXP computer (but not Win2k):
sFolder = "D:\pictures\tst"
sFile = "IMG_1556.JPG"
Set oShell = CreateObject("Shell.Application")
Set oFolder = oShell.NameSpace(sFolder)
Set oFolderItem = oFolder.ParseName(sFile)
sInfo = oFolder.GetDetailsOf(oFolderItem, 25)
WScript.Echo "Date Picture Taken: " & sInfo
List of supported properties found here:
http://www.microsoft.com/technet/scriptcenter/scrguide/sas_fil_lunl.asp