Questions tagged [datemodified]

43 questions
4
votes
3 answers

How do I pull the 'last modified time' of each file within a directory in Python?

I have been tasked with creating a small application that allows the user to: browse and choose a specific folder that will contain the files to be checked daily, browse and choose a specific folder that will receive the copied files, and manually…
4
votes
2 answers

How to compare MS-Access created and last modified dates of tables, queries, forms, etc.?

I like to create a list when tables, queries, forms etc. were created and updated in an Access 2010 database. In theory this is possible with a little VBA code but unfortunately this code shows the wrong information. I tested it myself and it is…
Edgar
  • 2,527
  • 2
  • 19
  • 40
3
votes
2 answers

FTP file last modified VB.NET

How do you get the date modified from a file on an FTP server in visual basic? This is what I have so far: Dim request = CType(WebRequest.Create(URL + ZipFile), FtpWebRequest) request.Method = WebRequestMethods.Ftp.GetDateTimestamp I've tried a…
joyjumper
  • 51
  • 6
3
votes
2 answers

Vbscript - Compare and copy files from folder if newer than destination files

I'm trying to design this script that's supposed to be used as a part of a logon script for alot of users. And this script is basically supposed to take a source folder and destination folder as basically just make sure that the destination folder…
Kenny Bones
  • 5,017
  • 36
  • 111
  • 174
2
votes
1 answer

Merge muiltple tiff into one pdf using itextsharp based on lastwriteaccess

Don't know really how to go about this? I can convert one tif to one pdf. I can convert all tifs in one directory into one pdf. What I want to do is convert a group of tifs based on their lastwriteaccess or createddate or modifieddate. For example,…
Smiles
  • 71
  • 1
  • 1
  • 5
2
votes
1 answer

change folder modified date based on most recent file modified date in folder

I have a number of project folders that all got their date modified set to the current date & time somehow, despite not having touched anything in the folders. I'm looking for a way to use either a batch applet or some other utility that will allow…
Max Well
  • 257
  • 2
  • 9
2
votes
2 answers

PHP Script to check when a link was last modified

Is there a basic php method that accepts a URL and retrieves the date last modified from the header? It would seem like something php can do, but I'm not sure which object to check. Thanks
AndreLiem
  • 2,031
  • 5
  • 20
  • 26
2
votes
1 answer

Change date modified to match "header sent date" in email files cpanel

I moved a bunch of emails using imap over to the server. When they loaded onto the sever the date modified is the same date for all the emails. So when I am using imap in mac mail it displays all of my emails as coming in on Sept. 30th. The header…
adjc98
  • 37
  • 8
2
votes
2 answers

Python - File modification time comparison, strange behavior

I use a Python backup script for my files and I back up from my hard drive to both pen drives that are detached from my PC and permanently attached external drives. I have logic in my script that does a copy from source to destination only if the…
2
votes
3 answers

I want to create a batch script that will print all the files I have in a folder, in order of date modified

I've got no idea where to start with this :-/ I have a folder with around 500 files in it, that I would like to print off in order of date modified. I could go through and do them one by one, but why do that when I'm sure there will be a way using…
TonyT
  • 23
  • 1
  • 1
  • 3
1
vote
1 answer

Add sorting by modified date in Woocommerce products sort by

In woocommerce, I would like to add the possibility to sort the products by "Modified date" in shop and archives pages. How can I add "Sort By date modified " in woocommerce product sorting dropdown? Any help is appreciated.
Mani
  • 199
  • 2
  • 12
1
vote
2 answers

Powershell - How to list sub folders and if they have been modified in last x days

I have a number of customer backup chains that are stored on a network share and I would like to create a powershell script that can check if the backup folders have been modified in the last 4 days. This is so I can automate the process of checking…
DBratty
  • 11
  • 2
1
vote
0 answers

How to get last modified time of Recycle Bin

I've made some basic code attempting to get and display the date modified of the users recycle bin. I have a DateTime which uses File.GetWriteTime on the recycle bin file. Then I'm just displaying that DateTime in a MessageBox. Here is my…
DylanC
  • 41
  • 9
1
vote
1 answer

imagemagick convert dng - changes date modified

Edit 26/04/2016 : This is a bug that has been fixed in ImageMagick-6.9.3-5 and 7.0.0-0 . Converting DNG files, when I run convert "my_img.dng" "my_img_converted.jpg" Imagemagick changes the date modified of the original my_img.dng to the time when…
Voy
  • 5,286
  • 1
  • 49
  • 59
1
vote
2 answers

Batch code if date created is less than 24 hours

I have already written here for this problem, we solved it, but now I have to add this "if the file was created in the last 24 hours copy it else don't". I have found several examples online but I just cant seem to be able to figure the Command…
Uroš Grum
  • 138
  • 2
  • 14
1
2 3