I would like to create a .bat the that reads all of the files in a specific directory and copies them to a unique directory based upon the file name.
Here is a sample of files it my p:\master directory. The directory actually contains approx 500 files
ITM90236.CSV
ITM90236.HST
ITM90254.CSV
ITM90254.HST
ITM90334.CSV
ITM90334.HST
ITM90669.CSV
ITM90669.HST
I want to use the number in the file name and copy the files to that directory P:\Master\90236.
My current batch file has a entry for number.
Here is a sample of files it my p:\master directory. The directory actually contains approx 500 files
ITM90236.CSV
ITM90236.HST
ITM90254.CSV
ITM90254.HST
ITM90334.CSV
ITM90334.HST
ITM90669.CSV
ITM90669.HST
I want to use the number in the file name and copy the files to that directory P:\Master\90236.
My current batch file has a entry for number.