TIPS: Setting timezone in Linux


If you wants to set the “Asia/Calcutta” as timezone, then on terminal execute the following as root:
cd /etc
ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime

Advertisements

TIPS: how to find the current directory using VBSCRIPT


Two solutions,
1.
currentDirectory = left(WScript.ScriptFullName,(Len(WScript.ScriptFullName))-(len(WScript.ScriptName)))

2.
currentDirectory = CreateObject(“Scripting.FileSystemObject”).GetAbsolutePathName(“.”)