Finding all files modified less recently than certain file - file

I need to list all files in a current directory and the subdirectories that are modified less recently than one particular file in the directory. I know i need to use the find command, but i cant get it right.

Related

WinEdt TREE and bib files

I would like to be able to open bib files from other directories from the WinEdt Tree. However, WinEdt cannot locate them (see figure below). The project/files compile; LaTeX is set up correctly. The only issue is I cannot click on the file in the tree to open it.
The file le.bib is located in my personal texmf directory structure which is added to MiKTeX. LaTeX can find and process it with \bibliography{le} but the WinEdt Tree cannot locate it.
I realize I can move the file into the project directory, but I don't wish to do this. I have common bib files that I reuse for multiple documents and don't want to duplicate them.
Ideally, I'd like to tell WinEdt a search path to look for the files. That way I don't have to hard code paths into files.
I'm using WinEdt 11. I've searched online and dug through the Options Interface, but I'm unable to find a way to get WinEdt to locate the files. Any suggestions would be appreciated.
WinEdt Tree cannot find file

What is the meaning of the STAGING_DIR variable in makefile

I know this is a noob question but I couldn't find a good explanation...
I am currently learning how to work with makefiles and I get sometimes an error like: 'STAGING_DIR not set' when running make.
I know I can export a directory as staging dir and the warning will go away but what is the meaning of it? and what make do with it?
If it is in any documentation a link will be more then enough thanks :)
There is no meaning for STAGING_DIR built into make, but the name STAGING_DIR suggests the designer of the makefile intended it to be the name of a directory where some sort of intermediate files would be put.
Most likely you can assign to it the path of any directory you create where files built during the build may be placed. However, inspect of the makefile would be necessary to determine how it is used. If it is used solely for intermediate files, and not permanent files, then you can use a temporary directory and remove it when you are done building, or you might use a semi-permanent directory with the benefit of faster builds when you build incrementally. (What constitutes a temporary or semi-permanent directory is mostly a matter of convenience: You might put a temporary directory in a common path used for such things, hopefully on a disk volume with available space and good performance, possibly a directory pointed to by $TMPDIR. Some areas designated for temporary directories may be automatically cleaned up by the operating system at times. You might put a semi-permanent directory somewhere in your own home directory and remove it at your convenience.)
In spite of the name, STAGING_DIR might be used for final output files of the build, in which case using a temporary directory that is removed frequently might not be suitable. Again, inspect of the makefile is necessary to see how it is used.

Batch Programming - Not deleting partial files being written

I am trying to develop a batch script which copies a list of files from the a source directory to another directory and does some functions. Once the copy has been done, the files needs to be deleted from the source directory.
In the source directory, we are receiving files on real time basis 24x7 from an external source.
How can I make sure, the copy or the delete from the script does not impact any files which are currently being sent (incomplete files which are in relay at that moment) from the external source in the source directory, whilst the script is doing its own job?
The script needs to be ran every 5 minutes.
Due to some challenges, we cannot xxcopy for our functionality.
Please can you advise.
Instead of COPY& DELETE use MOVE, so the batch fragment would look like this:
FOR %%F IN (C:\SOURCE\*.*) DO MOVE %%F C:\TARGET\
If file in incomplete (other process uses it), then MOVE on that file will fail. Next time the script is run, it will attempt to move that file again.

Sync folders with xcopy/batch based on checksum?

I'm trying to make a simple batch for windows that will basically sync two folders, the catch is that the files in the folders can be named arbitrarily and the snyc should be based on the checksum. I've only found information about xcopy that compares the timestamp so I'm wondering if this is possible in a simple matter at all.
Here is the scenario I'm trying to manage, you've got the "Import Folder" containing the files named A_2.bmp and A_3.bmp and the "Target Folder" containing file A_1.bmp.
File A_2.bmp is infact the same file as A_1.bmp, just with a different name and thus should be skipped, A_3.bmp should then be copied over to target folder and icrementally renamed to A_2.bmp.
This probably sounds more like a work for patching software, but I'm looking for a solution that doesn't require building patches all the time and is open for the user (so he can just drop files into the import folder and run it whenever the need arises)
If there is software for such a thing that is free and can be distributed without installing I would also consider this a good option, but I haven't found anything.
I'm thankful for any advice and help on this matter so thank you very much for your time and help!
You have this command line utility :
http://www.microsoft.com/en-us/download/details.aspx?id=11533
You can then make a bat who simply test the checksum of the files

List the files in the directory using gwt-filesystems

I tried to list the files in my local directory as well as to read a file. But was not able to do it. Can any one give me sample code to get the list of files in a directory using gwt-filesystem.
It depends from where you are reading. You can't obviously read from the client due to security issues (any HTML wouldn't let you do that). However, you could obviously read the list of files in a folder from the server side.

Resources