good old batch file help. moving FOLDERS

Associate
Joined
8 Mar 2007
Posts
2,176
Location
between here and there
hey guys,

I'm after a little help...

I have a folder that contains several other folders all containing data specific to their folder title.

I need to move these folders and there contents from their original location to a new location ready for a FTP script to move them on again.

I can copy all the folders and data ok....

xcopy c:\parent_folder\ \\server\new_parent_folder /S /Y

but I'm stuck on removing all the data I've copied from the original location.

As i don't know what the folders that I'm moving are called, I can't just do a 'rmdir' to be shot, so i need a way of removing all data and folders that are in a specified folder.

Any ideas?

Thanks

Blastman
 
Back
Top Bottom