To change it to last modified, change the '/tc' to '/tw'
(see the DIR /? help for more info on this).
Concerning the MOVE, what did you use? I did NOT mean to
just replace ECHO with MOVE. I meant change the simple
example I provided with an echo statement to be a fully
formed MOVE statement.
From the MOVE /? help:
Moves files and renames files and directories.
To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2
[drive:][path]filename1 Specifies the location and name
of the fileor files you want to move.
destination Specifies the new location of
the file. Destinationcan consist of a drive letter and
colon, adirectory name, or a combination. If you are moving
only one file, you can also include a filename if you want
to rename the file when you move it.
[drive:][path]dirname1 Specifies the directory you want
to rename.
dirname2 Specifies the new name of the
directory.
/Y Suppresses prompting to confirm
you want to overwrite an existing destination file.
/-Y Causes prompting to confirm you
want to overwrite an existing destination file.
The switch /Y may be present in the COPYCMD environment
variable. This may be overridden with /-Y on the command
line. Default is to prompt on overwrites unless MOVE
command is being executed from within a batch script.
======== End =========
I can't write the MOVE statement, because I don't know
where you want to put the files. It should look something
like this ...
move %%b \some\destination\pathspec
Tom Lavedas
===========
-----Original Message-----
Tom,
I am not very good at the batch thing, and I am a little confused (not the
first time). First, I replaced the echo with the move command and it said
"The system cannot find the drive specified." I tried to change the output
location, but I keep getting the same message. Where do I change the output
location? Also, can this work for Date Modified instead of Date Created?
Sorry to such a pain in the &^%, I really appreciate your help.
Thanks,
Daniel
.