Websphere interview questions

Oracle Sql Developer through a socks firewall

1. Go to directory sqldeveloper\ide\bin
2. Backup file ide.conf by copying ide.conf to ide.conf.backup
3. Add the following to the ide.conf

AddVMOption -DsocksProxyHost= [host]
AddVMOption -DsocksProxyPort= [port]

ex.

AddVMOption -DsocksProxyHost=127.0.0.1
AddVMOption -DsocksProxyPort=1080

Get current directory in batch file

used %cd% 


example

@echo off
set current=%cd%
pushd ..
set parent=%cd%
popd

echo current %current%
echo parent %parent%
top