TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


technote:batch_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technote:batch_file [2022/06/06 02:47] – [Scheduling A Batch File Execution] Scott Cunliffetechnote:batch_file [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 12: Line 12:
  
 To edit a batch file, right click the file and select ''Edit'', do not double click to open as this will run the file and execute the commands within it. To edit a batch file, right click the file and select ''Edit'', do not double click to open as this will run the file and execute the commands within it.
 +
 +Commands within the batch file can include setting current working directory, variables to set report parameters, program execution and output directories and format.
 +
 +Example batch file to produce an inventory in PDF format for Customer 1002, using variables to set PDF orientation, output path to write file to, image to include on report header and removing report columns to customise report data. 
 +
 +File: run_US02_Inventory_PDF.bat
 +
 +<code>
 +cd C:\TapeTrack\Reports\US02
 +
 +set TMSSREPORTFORMAT=PDF
 +set TMSSPDFORIENTATION=landscape
 +set TMSS10PDFOUTPUTPATH=C:\TapeTrack\Reports\US02\Inventory.pdf
 +set TMSSPDFLOGOPATH=./images/logo.jpg
 +set TMSSREPORTCOLUMNDELETE=1,3,8,9
 +
 +TMSS10Inventory -S batch@localhost 2> stderr_inventory.txt
 +
 +</code>
 ===== Executing A Batch File ===== ===== Executing A Batch File =====
  
Line 22: Line 41:
 Using Windows Scheduler you can schedule a batch  file to run at a certain time and date such as creating an inventory report every Monday at 9:00 AM or you can set the schedule to run every 15 minutes to update a Library Sync or Slotting allocation. Using Windows Scheduler you can schedule a batch  file to run at a certain time and date such as creating an inventory report every Monday at 9:00 AM or you can set the schedule to run every 15 minutes to update a Library Sync or Slotting allocation.
  
 +To open Windows task scheduler, click ''Start'' > ''Windows Administrative Tools'' > ''Task Scheduler''
 {{tag> technote batch}} {{tag> technote batch}}
  
  
technote/batch_file.1654483653.txt.gz · Last modified: 2025/01/21 22:07 (external edit)