File renaming for batch processing

Forums Spectroscopy Batch processing spectra File renaming for batch processing

#583011
Forrest Sims
Participant

Hi Andy,

I use MaximDL for spectrum image acquisition.  It does not name the files in a way that ISIS can work with so I wrote this little script a few years ago to rename the files to work with ISIS.  What it is actually doing in this case is removing leading ‘0’s in the sequence numbering to match ISIS requirements.  I put a copy of the script which I call ISSIS-rename.ps1 in the folder with the raw spectrum files and then right-click on it and choose Run with PowerShell.  I would imagine that you could modify this script to work with the files created by your acquisition software.  Hope this helps.

Woody Sims

Dir | Rename-Item –NewName { $_.name –replace “-0“,”-” }

Dir | Rename-Item –NewName { $_.name –replace “-0“,”-” }

Dir | Rename-Item –NewName { $_.name –replace “-0“,”-” }