[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ProgSoc] DOS Batch file
for %a in (*.*) do move %a some_other_directory
Or you should just be able to do
move *.* some_other_directory
Note that this does not happen recursively. If you have WinNT or Win2K
then there are lots more options with the for command, making it very
powerful. Type "for /?" to find out more.
Also, I think %a needs to be %%a if its in a batch file, rather than on
the command line.
On Tue, 30 Jan 2001, Glenn Williamson wrote:
> Fairly straight-forward question. I need a little batch file that reads in a
> file containing a list of filenames and moves each of those files into
> another directory. Pretty simple task if it was under Unix, I know. But it's
> not, and I'm struggling.
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to email@example.com.
If you are having trouble, ask firstname.lastname@example.org for help.