Questions tagged [datemodified]
43 questions
1
vote
1 answer
Copy N days old files on Linux
Good morning,
I have many files inside directories, subdirectories which I'm now using copy everything inside.
find /tmp/temp/ -name *files.csv -type f -exec cp -u {} /home/dir/Desktop/dir1/ \;
And I was wondering, if there is anyway that I can…

mau5
- 179
- 1
- 3
- 8
1
vote
1 answer
How get first modified file in a folder using PHP?
How get first modified file?
So far I've had:
$dir = $path.'/';
$firstMod = '';
$p = 1;
foreach (scandir($dir) as $file) {
if (is_file($dir.$file) && ... ) {
if($p == 1) break;
}
}
If I would like to get last file but not last modified but last…

Delicja
- 193
- 1
- 8
- 18
1
vote
1 answer
How detect the correct modification of a file?
In a previous question one of my questions was how my application could know that a file has been rewritten. I should have added: "by another application". First I tried ShellNotify which reports changes in a directory but not in a specific file…

Arnold
- 4,578
- 6
- 52
- 91
0
votes
0 answers
Is dateModified in the webiste related with the index and updating it?
When I open an article web page on a website. And I click on the right click of the mouse. then chose "View Page Source"
Then we search about dateModified. Here we can find the last update on the article.
Is dateModified related with the index and…
0
votes
1 answer
Using pdflib on a scanned document
I got a scanned document in pdf and noticed in the file>properties that the "pdf producer" is pdflib 6.0.3
Questions:
why and how was pdflib used to produce this pdf? It was supposed to be a scanned document.
why "created" timestamp is later than…

Spike
- 1
0
votes
1 answer
find -mtime option on linux listing all files regardless of time?
I'm trying to use the linux find command to show me the files in my current directory that have been modified in the last 24h. To test my command, I piped it to ls as below.
find . -maxdepth 1 -mtime -1 | xargs -I{} ls -lh {}
but this command…

Jamie Gorzynski
- 65
- 4
0
votes
0 answers
Renaming the latest date modified file
I'm not sure how to select the newest date modified file and rename it to something... This script will run once a day, and the newest date modified needs to overweight the previous days' file. Any help will be appreciated!
$session = New-Object…
0
votes
1 answer
Find by -name and -mtime, returns nothing
I am trying to use find command to delete some old file from backup folder but the find command return nothing, and so nothing is being removed! this is the code (find part), my system is ubuntu 18.04 LTS
find -name "*.sql" -type f -mtime +30
the…
0
votes
3 answers
How to sort out images from a specific time(period) of day?
TIMELAPSE PROJECT
Over a year a new photo has been uploaded every 15 minutes from my webcam (thousands of photos)
I am looking for a simple way to
1. Pick one picture from each day, taken as close as possible to 12:00 midday
2. Then move all…

Eirik
- 3
- 4
0
votes
0 answers
Batch - Converting the date modified of a file into a UNIX timestamp
I need to transform the last modifiaction dates for a set of files in a folder into a unix timestamp, timestamp only needs to be accurate to the day, this is so i can eventually delete files older than 12 months
I am currently implementing it as…

Tristan Thompson
- 103
- 8
0
votes
2 answers
Append to a filename last modified date and time with a batch file
I am trying to copy all *.csv files from a folder to another folder, but while copying I need to add modified date and time of file to filename. For example, if filename is Test.csv and it was modified on 11/21/2018 15:01:10 output should be…

chiru
- 3
- 2
- 5
0
votes
1 answer
How to search keyword based on text files modified date?
I have multiple text files that are generated everyday.
I would like to search "apple" string from the latest modified text file.
If the string is not found, i will need to search from yesterday's text file.
If it still not found, i will need to…

devilgemini
- 33
- 1
- 6
0
votes
0 answers
find name, size and date modified of file inside that particular file using javascript in html file not uploaded file
I want to display html file's size,name and date modified inside that html file using javascript.basically i want to fetch last date modified from server for that particular file and want to show inside that own html file for whose we are getting…

Parth Patel
- 1
- 1
0
votes
0 answers
C++ Getting Date Modified of Recycle Bin
I have some simple code attempting to get the last modified date of the users recycle bin. This code seems to work on other files however it does not work on the recycle bin. I've done some looking into and it seems the recycle bin is a special file…

DylanC
- 41
- 9
0
votes
2 answers
WinAPI function which replaces file but preserves file information
I remember there was a WinAPI function which copied the "date modified" property of the previous file which was replaced with it or something like that? Perhaps anyone can tell me about it?
The problem occured when you used that function very…

Tux
- 1