Re: Retrieve most recent file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: solex (solex_at_nowhere.com)
Date: 05/20/04


Date: Thu, 20 May 2004 16:58:47 -0400

You could do a number of things. All of which relate to using the Dir()
command to (1) loop through and parse the version number out so you can
compare it to the other versions or (2) check the file date persumably the
file with the latest date will also be the most recent version (an
assumption on my part)

Regards,
Dan

"Daniel P" <anonymous@discussions.microsoft.com> wrote in message
news:4246C6BA-64BF-4B91-9B01-D117DA1A7063@microsoft.com...
> Hello,
>
> I currently use the following line of code to identify a specific file to
be able to back it up automatically:
>
> SourceFile = "\\Pointeclaire\Public\CAMTA Database\BackEnd\CAMTA_be V02
R06.mdb"
>
> However, as you can see there have been and are go to be many revision to
the database file in question. How can I code it so that I no longer am
required to keep changing the source file manually? What coding will
retrieve the file "...\CAMTA_be Vxx Ryy.mdb" where xx and yy would be the
greatest values that the computer can identify in the directory in question?
>
> Thanking you in advance for your help,
>
> Daniel



Relevant Pages

  • Re: reverse ipv6 dns lookup in a script, using, for example, /usr/bin/host utility ?
    ... You could put results into an array and parse it. ... You can use a while loop to read command, ... you can pipe command into a file and use a while ...
    (comp.os.linux.networking)
  • Re: Help with gui plots
    ... Look at the if loop that I've marked with 3 asterisks. ... the "hold off" command will turn off the ... Any subsequent trip through this loop will start the plot ... This is the code that I use, but the figure that I retrieve ...
    (comp.soft-sys.matlab)
  • Sol8 and EVA hangs
    ... Secure Path 3.0D is loaded for channel failover. ... retrying command ... # Adapter hard loop ID address to use on the fibre channel bus. ...
    (SunManagers)
  • Summary: Sol8 and EVA hangs
    ... Oct 8 11:00:41 proddb SCSI transport failed: reason 'aborted': ... retrying command ... # Adapter hard loop ID address to use on the fibre channel bus. ... # before reporting I/O errors. ...
    (SunManagers)
  • Re: Using foreach loop to create radiobutton menu
    ... Your foreach loop is not the problem, the problem is how you define the -command. ... The only possible thing the interpreter can do is substitute the current value of range, which is likely the last value once your loop exited. ... One choice is double quotes. ... The double quotes means that $range gets expanded while in the loop, long before the puts command actually runs. ...
    (comp.lang.tcl)