in reply to Moving folders
You could place this within a loop that reads each line and places the matched folder name in $matchedfolder. The /y just keeps a overwrite confirmation box from popping up. If you would like to be warned before overwriting files remove /y.$defaultdir = 'C:\Foo\'; # Directory containing original folders $destinationdir = 'C:\Bar\'; # Directory to copy folders to system "move /y $defaultdir/$matchedfolder $destinationdir";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moving folders
by bobdole (Beadle) on Mar 10, 2005 at 00:28 UTC | |
by Tanktalus (Canon) on Mar 10, 2005 at 01:07 UTC | |
by bobdole (Beadle) on Mar 10, 2005 at 03:29 UTC |