Hi all, I'm a hack sql programmer / web designer of sorts. More of an Excel moderate/exp than a programmer. I'm familiar with batch files and how to use them, but very unfamiliar with how to program them.
I need a batch file to perform the following move:
From location:C:\Materials\Transfer File
Filenames:V00128594 11-001 MINERALS.pdf
V00128594 11-001 MICROS.pdf
V00128598 11-1000 MICROS.pdf
V00129476 11-001 MICROS.pdf
V00131451 33-4872 MICROS.pdf
V00131451 33-4872 MINERALS.pdf
V00131451 33-4872 SPECTROPHOTOMETRY.pdf
Results would look like this with Move To Filename Locations:C:\Materials\11's\11-001- V00128594 11-001 MINERALS.pdf
- V00128594 11-001 MICROS.pdf
- V00129476 11-001 MICROS.pdf
C:\Materials\11's\11-1000- V00128598 11-1000 MICROS.pdf
C:\Materials\33's\33-4872- V00131451 33-4872 MICROS.pdf
- V00131451 33-4872 MINERALS.pdf
- V00131451 33-4872 SPECTROPHOTOMETRY.pdf
Our naming conventions are:
Filename
{LOT}" "{ITEM CLASS}"-"{ITEM NUMBER}" "{TEST RESULTS}.pdf
Locations
C:\Material\Transfer File - files are stored til ready to transferC:\Material\{ITEM CLASS}"'s"\{ITEM CLASS}"-"{ITEM NUMBER}\ - location where the files need to land, based upon filenameI've located several examples in this forum that are very close, but I can't seem to figure out how to tell it the new location based upon the "33" before the dash, and adding an "
's" for the folder directory. Thanks in advance for any help.
Edit:My files always end in .pdf and all of the folders will always be pre-existing.