Month: June 2006

returning VB script execution status

VB Script & DOS batch…each of these have pros and cons. DOS batch is easy to script but it becomes complex with requirements. VB Scripting is not as easy as DOS batch but can easily scale to script very complex activities. So, it is always a good idea to combine these two technologies and get the best out of them. In a similar effort, I was trying to capture the return status of VB script inside a batch. There is no direct way to do it. something like, set x = cscript.exe test.vbs will not work mainly because there is no way to return the value of a variable within a VB script. So, here is what I had done. ‘VB Script Start ‘test.vbs Dim i i = 10 If (i10) Then     WScript.Quit(1) Else     WScript.Quit(0) End If ‘VB Script End ::DOS batch Start ::test.bat @echo off cscript.exe test.vbs if errorlevel 1 goto doit1 if errorlevel 0 goto doit2 :doit1 echo Errorlevel 1 found pause exit :doit2 echo Errorlevel 0 found pause exit :: DOS Batch …

The Quota crisis

Here is a very interesting and thought provoking read by Mr. M S Gopinathan, a former IIT professor If you are socially disadvantaged, you must strive to overcome that disadvantage and the only way to do that is to educate yourself and your children. Ask for good schools, good teachers and scholarships. If you opt for charity and crutches, you will always remain for generations to come, a receiver of charity limping on borrowed crutches. Charity demeans both the giver and the receiver. http://in.rediff.com/news/2006/jun/09guest.htm

Have you heard about reverse outsourcing?

One of the most interesting articles by Siddharth Srivastava. A must read for all those in IT industry The outsourcing story so far has been one way — of Indians and Indian firms eating into jobs in the US and UK. As Indian Information Technology firms reach global scales, a reverse trend is evolving — Americans and others from the west are finding employment in overseas operations of Indian firms. This is to add to the many out-of-work executives from US who have shifted base to India in search of better opportunities. It is being termed as reverse outsourcing. In the past, Indian outsourcing companies have set up offices in the United States, but they have been largely restricted to marketing, generating new clients as well as establishing a countrywide network that have created very few jobs and that too mostly for Indians. Several reports now indicate that Indian IT giants such as Infosys, Wipro, Tata Consultancy Service have resorted to hiring western employees to deal with local populations abroad riding profits generated on huge …