Jump to content
Sign in to follow this  

Changing The File Date of Photos

Recommended Posts

I'm having some trouble here changing the file date of photos in the Pictures library. I figured out how to get to the path



$folder=FileSelectFolder ( "Select the location of your photos","" ,2, $folder )

if @error then exitfunc()

if not StringInStr($folder,"\") then $folder = @UserProfileDir&"\"&$folder


Run(@comspec &' /c start '&$shortfolder,@ScriptDir,@SW_HIDE)

$ret=MsgBox(4100,"ComputerHelp808.com","You wrote"&@CRLF&$folder&@CRLF&"Is this correct?")


Until $ret=6

But after calling the func the photo date remains the same

I did search for a solution on the forum of course first

func changedate()



    $var = FileSetTime($folder&"\*.jpg",$year&$month&$day)

if $var=0 then 
    msgbox(4096,"ComputerHelp808.com", "An error ocurred and your photo dates were not changed. Please restart the program and try again.")



I'm not getting an error. As far as the function goes it thinks it changed the date


Edited by tutor2000

Only $2.00 with Resale Rights How to Block Better for Martial Artists and NonMartial Artistshttp://kirkhamsebooks.com/MartialArts/Bloc...tterEbook_m.htm

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...