Batch edit the file creation date - powershell

Someone set the wrong date in the camera settings and now has several hundred pictures with 2013 as the year. Is there a way to batch-edit the creation date by decreasing the year by 1?
Thanks in advance

Here you can find 2 powershell script to get & set Exif Date Taken of your photos.
Read carefully what Chris wrote in his blog.
I've used this script for the same your problem on some jpeg before buying LightRoom that do EXIF editing really easy.

I believe you could also use a ComObject in PowerShell Wia.ImageFile to manipulate the information. PowerShell Team wrote a blog post on it here. They provided a module that you might be able to use. I loaded a file and found the DateTaken in the value of "DateTime" under the Properties property of the $image variable, if done as the blog post showed an example of.
I think you could also do this in the GUI of Windows Explorer. I took two files I had taken with a Canon and selected both of them and went into Properties. Under the Details tab I just changed the year value. The month, day, and time staid the same. I did this on two files and it worked, although if you are talking about hundreds not sure how that would perform.

Related

ESGF `wget` scripts incorrectly generating; linking to a random unrelated file

About half the time when I click on WGET script following a CMIP6 data search on the ESGF (LLNL node), I get a wget script that only points to one, unrelated file. It's always the same one, too. Here's the relevant line that shows up in each wget file:
download_files="$(cat <<EOF--dataset.file.url.chksum_type.chksum
'famipc5_ne120_v0.3_00001_01_198001_198401_climo.nc' 'http://esgf.anl.gov/thredds/fileServer/esg_dataroot/ACME/climo/amip/v0_3/atm/mon/native/ne120/ens1/famipc5_ne120_v0.3_00001_01_198001_198401_climo.nc' 'SHA256' 'e5040c5df9d080437418943f02a41e84712dbe1c4a69982447712d7c7334241d'
EOF--dataset.file.url.chksum_type.chksum
)"
This happens with a wide variety of datasets. Here's one file where that happens, for example:
CMIP6.CMIP.CCCma.CanESM5.amip.r1i1p1f1.day.pr.gn
I've been searching for a reason, so far without success. A workaround is to hit the "download HTML" button 1000 times for each individual needed file instead (or set up a Globus endpoint for the files where that's possible), but it's very inconvenient and doesn't provide the functionality of a bash script.
Does anyone know what may be causing this? Is there some sort of limit to how many wget scripts an ESGF user can generate per day and these are downloaded as placeholders afterwards instead?
Grateful for any insight!
PS: I apologize for the cdo tag; I know this isn't a cdo problem, but it's hard to find relevant tags for this, and I figured that community may know what's up.
Turns out this is a browser issue. Repeating the search with chrome fixed it.
(Also that stack overflow may have not been the right venue to post this question; but I want this to be searchable somewhere at least)

Powershell to find all the saved time & saved by for one single file

We have couple excel files are used by several departments, and we would like to track on user and saved time. excel can read some info, but not accurate if the file got recovered.
For these files, they can be updated, then got recovered to prior version. There is a need to share all info upon time and user that saved the file in the last month.
Is it achievable by using powershell codes ?
Thank you for your time in advance.
May

how to change the date of creation of a word file

I was wondering if it is possible to change the date of creation of a word file. For instance, I created my word file in 2012, but I want to show it as it is created in 2003. Is this possible? If yes, could you please explain it?
To change access time use time stomp -
http://www.offensive-security.com/metasploit-unleashed/Timestomp
I doesn't know why you would want to do this ? The above is a anti malware and ethical hacking tool as well as penetration testing tool.

Office documents in UIWebView with time difference between dates

I've been using UIWebView to render office docs for a while, but recently I noticed that when a date is added in the file, let's say an Excel file with a date value in one of the cells, the date is (apparently) being modified by the web view.
The weird thing is that I made a test based on two projects. The first one, is a project that I've been working on for about a year and the second is new one that I created just for testing purposes.
The dates are being displayed correctly in the new project, but wrong in the old project so I'm starting to think is something regarding the project settings. I also copied the classes from the new project to the old one to see if there was a difference, but even using the new classes, my old project shows incorrect(*) dates for the same excel file.... so that's weird.
Any ideas?
Thanks in advance
Update 1:
(*)By incorrect dates, I mean there is a time difference between the one displayed in the test project and the one displayed in the old project for the same file.
I changed the title of the question from "... invalid dates" to " ...time difference between" ... because the word "invalid" may lead to a misunderstanding.
I was not able to understand what the problem was, but the solution for now is to change the visualization component from UIWebView to the QuickLook framework.
I know this is not the correct answer to the question, but at least is a way to display the document correctly.

Can Crystal Reports generate documents in PDF/A file format?

We are looking for a solution to generate documents in PDF/A format for sharing and also archiving purpose.
I checked the description of ExportFormatType.PortableDocFormat, however it just say PDF file.
Can the Crystal Reports generate PDF/A compatible files?
I don't think you export directly to PDF/A. Instead, I recommend using Crystal to export to PDF, then find a third-party software to convert your PDF to PDF/A. It takes 1 extra step, but it will meet your needs.
I googled a bit and found http://www.abbyyusa.com/shop/pdftransformer/. I know nothing about this software, I'm just presenting it as an example. It costs 80USD, but you might be able to find a freeware alternative.
http://www.pdfa.org/doku.php is the offical homepage of PDF/A. You might find something useful there too.
According to this SAP community thread from a few days ago, it can't be done natively, although there was a third-party component mentioned there. I haven't tried it, so I have no idea if it works or not.