Previous Topic

Next Topic

Book Contents

Book Index

Example translating DOS files using the CTMBAT2UNC utility

Two job owners, A and B, are executing ScriptA.bat and ScriptB.bat, respectively. Owner A has drive M mapped to \\nt-A\share. Owner B has drive M mapped to \\nt-B\share.

The following table describes these scripts before and after executing the CTMBAT2UNC utility.

Owner

Original script

Translated script

A

@echo off

dir M:\jobs

@echo off

REM Following line was changed by CTMBAT2UNC

dir \\nt-A\share\jobs

B

@echo off

dir M:\jobs

@echo off

REM Following line was changed by CTMBAT2UNC

dir \\nt-B\share\jobs

 

As shown above, every line changed by the CTMBAT2UNC utility is marked by a REM comment inserted before the translated line.

BMC recommends that you review the translated script after invoking the ctmbat2unc utility.

Parent Topic

Scripts on Windows