Rob.K
07-30-2008, 11:36 AM
Hi,
I have basic knowledge of .bat files and need some advice on how to code something. I need a .bat (or equivalent) to move files into a specific folders based on the files name.
For example.
Original folder (which is the source of retrieval) contains:
Hello_01.doc
Hello_02.doc
Goodbye_01.doc
Goodbye_02.doc
Sub-folders are:
/Hello
/Goodbye
So the .bat needs to run on the original folder. It needs to recognise the first word of in the filename and then move the file into the corresponding folder leaving the original file empty. Also the filename needs to remain the same as it was originally.
If anyone can help me with this it would be much appreciated.
Thanks,
Rob
I have basic knowledge of .bat files and need some advice on how to code something. I need a .bat (or equivalent) to move files into a specific folders based on the files name.
For example.
Original folder (which is the source of retrieval) contains:
Hello_01.doc
Hello_02.doc
Goodbye_01.doc
Goodbye_02.doc
Sub-folders are:
/Hello
/Goodbye
So the .bat needs to run on the original folder. It needs to recognise the first word of in the filename and then move the file into the corresponding folder leaving the original file empty. Also the filename needs to remain the same as it was originally.
If anyone can help me with this it would be much appreciated.
Thanks,
Rob