I’m trying to copy the contents of multiple folders within the same directory into one new file. All the files I want to copy have the extension .sql.
When I try this – with one directory – it works:
directory>copy *.sql copy.sql
but when I try
directory>copy */*.sql copy.sql
I get
The syntax of the command is incorrect.
What am I doing wrong? I think I’m following the directions on this site correctly, but am I?
I’m not sure if this makes a difference, but I’m using Windows 7.
TIA!
I don’t think this would work. Standard Windows command shells won’t do wildcard matching on path components, just the final part of the path argument. As well, you’ve got a forward slash in there, which is used for command arguments
as expected, but doing
and