Hello,
I need to use the follwing script as a batch file.
cd D:\
md migration
cd migration
md SourceCatalogs
md TrgtXMLs
cd..
cd Catalogs
:begin
Set /P catalog= Please Enter your catalog name :
REM check whether a catalog called %catalog%.cat exists
IF EXIST %catalog%.cat GOTO :success
IF NOT EXIST %catalog%.cat GOTO :error
:error
ECHO Error - can't find the %catalog%.cat file Enter Again
GOTO :begin
:success
copy D:\Catalogs\%catalog%.cat D:\Migration\SourceCatalogs\%catalog%.cat
C:
cd "C:\Program Files\cognos\cer5\migs7"
impcat2xml D:\migration\SourceCatalogs\%catalog%.cat D:\migration\TrgtXMLs\%catalog%.xml
del D:\migration\SourceCatalogs\*.*
pause
GOTO MENU
when I enter 1st time its works fine, after that what ever i enters it points to Not Exist only.
kindly help
Configuration: Windows XP Internet Explorer 7.0
Hi Zubair,
|