GCMS
More information
WebinarsAbout usContact usTerms of use
LabRulez s.r.o. All rights reserved. Content available under a CC BY-SA 4.0 Attribution-ShareAlike

Solutions Rename filenames by folder names

Guides | 2024 | DataApexInstrumentation
Software
Industries
Other
Manufacturer
Agilent Technologies, DataApex

Summary

Importance of the Topic


Effective management of chromatographic data exports is critical in modern analytical laboratories. When Agilent ChemStation exports chromatograms in AIA (*.cdf) format, it generates a deep folder hierarchy with generic file names. Standardizing file names based on chromatogram identifiers and consolidating them into a single directory enables reliable automation, reduces manual errors, and streamlines downstream import into Clarity or other LIMS platforms.

Objectives and Overview


This application note presents a practical, Windows-based solution for renaming and organizing AIA-exported chromatogram files. The primary goals are to:
  • Rename individual signal files (signal01.cdf, signal02.cdf) to include the parent folder (chromatogram) name.
  • Consolidate all renamed files into a single output folder.
  • Optionally remove now-empty source folders to maintain a clean directory structure.

The approach relies on a batch script (rename-aia.bat) that leverages the command-line version of Bulk Rename Utility (BRC).

Methodology and Instrumentation


The workflow uses a simple batch file in combination with BRC to perform four main tasks:
  • Detect the operating system architecture (32-bit or 64-bit) to select the appropriate BRC executable.
  • Traverse the exported AIA folder tree and rename each *.cdf file, prefixing the parent folder name and appending a sequential index.
  • Move all renamed files into a single designated output folder.
  • Remove any empty directories left behind in the source folder (optional steps can be commented out if undesired).

Users configure the script by editing two folder path variables (INFOLDER and OUTFOLDER) and specifying the location of the BRC executable files. The batch file can be downloaded along with demo data from DataApex.

Main Findings and Discussion


Testing with the provided demo dataset demonstrates that the script reliably transforms:
  • chrom-A.AIA/signal01.cdf into chromA_01.cdf
  • chrom-A.AIA/signal02.cdf into chromA_02.cdf
  • chrom-B.AIA/signal01.cdf into chromB_01.cdf
  • chrom-B.AIA/signal02.cdf into chromB_92.cdf
All files are relocated to the output folder, preserving a clear naming convention aligned with chromatogram identifiers. Optional cleanup steps successfully remove empty subfolders, ensuring a tidy file system.

Benefits and Practical Applications


  • Reduced manual intervention and risk of naming errors when importing large batches of chromatograms.
  • Consistent, descriptive file names improve traceability and audit readiness in regulated environments.
  • Script-based solution can be integrated into existing data pipelines or scheduled tasks for automated processing.

Future Trends and Opportunities


  • Tight integration of renaming utilities within chromatography data systems to eliminate post-export processing.
  • Cross-platform scripting (PowerShell, Python) for greater flexibility and metadata-driven naming schemes.
  • Cloud-based data management workflows that automatically ingest and tag chromatogram files upon export.

Conclusion


The rename-aia.bat script coupled with Bulk Rename Utility offers a straightforward, configurable approach to standardizing AIA exports from ChemStation. By automating file renaming, consolidation, and folder cleanup, laboratories can accelerate Clarity imports, minimize errors, and maintain a clean data structure.

References


  • DataApex. rename-aia.bat batch script and demo data archive (cdfstore.zip). Code/Version: D145/EN03-20240314.

Content was automatically generated from an orignal PDF document using AI and may contain inaccuracies.

Downloadable PDF for viewing
 

Similar PDF

Toggle
Using SIMDIS Expert® 9 (Separation Systems) with Clarity
Using SIMDIS Expert® 9 (Separation Systems) with Clarity The SIMDIS Expert® 9 may be used with Clarity or Clarity Lite software to process the acquired chromatograms according to Simulated Distillation. The acquired chromatograms are exported as AIA (*.cdf) files and…
Key words
program, programexport, exportrun, runtroubles, troublesaia, aiacdf, cdfbatch, batchdefined, definedsettings, settingssimdis, simdiswise, wiseactivate, activateexported, exportedclarity, claritydialog
Using Dragon DHA© with Clarity
Using Dragon DHA© with Clarity The Dragon DHA® may be used with Clarity software to process the acquired chromatograms according to DHA extension. The acquired chromatograms are exported as AIA (*.cdf) files and automatically opened in Dragon DHA© for processing.…
Key words
dragon, dragondha, dhaclarity, clarityopen, openchromatograms, chromatogramspostrun, postruntoolbar, toolbarprint, printicon, iconexported, exportedclicking, clickingexport, exportacquire, acquireaction, actionadjust
Clarity (Lite) 2.4 vs 2.3
Clarity (Lite) 2.4 vs 2.3
2007|DataApex|Manuals
Clarity (Lite) Clarity 2.4(Lite) vs 2.3 2.4 vs 2.3 ENG Code/Rev.: M047/24F – 02 January 2006 Phone: +420 - 251 013 400 Fax: +420 - 251 013 401 [email protected] www.dataapex.com © DataApex Ltd. 2007 Podohradská 1 155 00 Prague 5…
Key words
clarity, claritychromatogram, chromatogramcommand, commandthreshold, thresholdfile, fileopen, opendialog, dialoginstrument, instrumentfft, fftset, setsend, sendinterval, intervalwindow, windowpdf, pdfgpc
Clarity Software REFERENCE GUIDE
REFERENCE GUIDE Clarity Software ENG Code/Rev.: M018/80Y Date: 1/17/2023 DataApex Ltd. Phone: +420 251 013 400 [email protected] www.dataapex.com Petrzilkova 2583/13 158 00 Prague 5 The Czech Republic Sections of the manual connected only to the Clarity Full version are marked…
Key words
guide, guidedialog, dialogchromatogram, chromatogramreference, referencecommand, commandfile, filewindow, windowcalibration, calibrationtable, tabletab, tabsequence, sequenceclarity, clarityuser, userall, alldisplays
Other projects
LCMS
ICPMS
Follow us
FacebookX (Twitter)LinkedInYouTube
More information
WebinarsAbout usContact usTerms of use
LabRulez s.r.o. All rights reserved. Content available under a CC BY-SA 4.0 Attribution-ShareAlike