Wednesday, January 30, 2013

Find and Replace using Bat file

@echo off
setlocal enabledelayedexpansion
set INTEXTFILE=license.opt
set OUTTEXTFILE=license.txt
set SEARCHTEXT=172.19.32.166
set REPLACETEXT=hello
set OUTPUTLINE=

for /f "tokens=1,* delims=¶" %%A in ( '"type %INTEXTFILE%"') do (
SET string=%%A
SET modified=!string:%SEARCHTEXT%=%REPLACETEXT%!

echo !modified! >> %OUTTEXTFILE%
)
del %INTEXTFILE%
rename %OUTTEXTFILE% %INTEXTFILE%

Finding Windows OS version using Batch file

Echo Please wait.... detecting Windows OS version...
ver | find "2003" > nul
if %ERRORLEVEL% == 0 goto done

ver | find "XP" > nul
if %ERRORLEVEL% == 0 goto ver_xp

ver | find "2000" > nul
if %ERRORLEVEL% == 0 goto done

ver | find "NT" > nul
if %ERRORLEVEL% == 0 goto done

if not exist %SystemRoot%\system32\systeminfo.exe goto warnthenexit

systeminfo | find "OS Name" > %TEMP%\osname.txt
FOR /F "usebackq delims=: tokens=2" %%i IN (%TEMP%\osname.txt) DO set vers=%%i

echo %vers% | find "Windows 7" > nul
if %ERRORLEVEL% == 0 goto ver_7

echo %vers% | find "Windows Server 2008" > nul
if %ERRORLEVEL% == 0 goto done

echo %vers% | find "Windows Vista" > nul
if %ERRORLEVEL% == 0 goto ver_7

goto warnthenexit

Friday, December 7, 2012

Cricket Ideas ...

Thursday, December 6, 2012

Live Cricket Score

Friday, November 23, 2012

WAS Default Configuration

Eclipse Web Services Explorer :
http://127.0.0.1:2087/wse/wsexplorer/wsexplorer.jsp?org.eclipse.wst.ws.explorer=0
WAS Backup and Restore Configuration :
backupConfig.bat  "C:\Backup.zip"
restoreConfig.bat  "C:\Backup.zip
WAS Admin Console URL :
http://localhost:9060/ibm/console
WAS Start and Stop Server :
startServer.bat server1
stopServer.bat server1
WAS Version and Installation History :
versionInfo.bat
historyInfo.bat
WAS Command Line Admin Console :
wsadmin.bat
Click Here for more info.
Profile Management Tool :
pmt.bat
WebSphere Application Server no longer starts :
To fix it by doing the following steps:
1. Open the file, server.xml in
profile_home\config\cells\cell_name\nodes\node_name\server\server1\
2. Locate the following line: genericJvmArgs="".
3. Replace this with an empty string: genericJvmArgs="". Start the application server.

Resolving Operating System Prerequisite Check issue in IBM Products : ClicK Here
In File : /fep.websv.primary.pak/maintenance.xml
Add line : $NIFP{windows7osprereq.flag};
Add Lines : 

FileName & Location For Modifying Ports address :
Location: profile_home\config\cells\cell_namel\nodes\node_name\
Filename: serverindex.xml, Virtualhosts.xml (under JININode01Cell dir)
FileName & Location For Modifying JVM, HeapSize Paramenter :
Location: above_location\server\server1\
Filename: server.xml
Filename & Location for removing profiles name :

Location: base_server\properties\ (base_v7\properties)
Filename: profileRegistry.xml
Hot deployment and dynamic reloading
SSL Certificate expiration issue resolution
Download WAS v6.1 & v7.0 Developer  Edition
Download WAS v8.5 & WASDEV Plugin for Eclipse

Tuesday, October 2, 2012

Today's Birthday


Today's Birthday