Microsoft
Software
Hardware
Network
Question : How can I find files starting with RCPT.Fxxxxxx from today?
Hi,
I've got a problem that I have decided to fix using a script. The script(vbscript) today finds a file and reads some data in that, that I want to use to find a matching file in another directory.
The filename is based on this: RCPT.Fxxxxx.Dkkkkkk.Glllll
llll.Tyyyy
yy.html
The xxxxxx in the Fxxxxxx is a value I know, the kkkkkk, lllllllll, yyyyyyyy is unkown. Is there a function / proper way to find the file from today? (There is only supposed / going to be one file that matches, but an escape if it finds two is ok :-) )
I'm comfortable with Bash, Batch, Perl and VBscript, so whatever script that does the find file best I will rewrite the script for parsing the first file to match the 2nd part :)
Answer : How can I find files starting with RCPT.Fxxxxxx from today?
If its on a unix/linux box (you mention perl and bash), then use 'find'.
find /path/to/files -name RCPT.Fxxx* -ctime -1 -print
you can get more created with a regex for -name and use -exec for any extra operations.
Random Solutions
Fully Automatic dental milling machines
Error: "The site <sitename> could not be found in the Web application SPWebApplication Name=MOSS Parent=SPWebService"
Vbscript PDF Metadata for SharePoint 2010
how to rename a file before saving it after uploading in c#
Public Desktop Icons not showing in RDP sessions
how to delete all duplicate songs in itunes
exhcnage 2010 Hub Transport load balancing
NAT setting and vmware
Slipstream all updates into new wim.image / win 7 install DVD
System Restore Points Not Created on Win 7