Tuesday, May 25, 2010

A very quick and dirty way to create a service from a vbscript file

Creating service from VB Script

1. Execute the below Command:
instsrv.exe C:\windows\System32\srvany.exe

Note: 'Service Created' message indicates Service Created Successfully

2. Copy the srvany.exe file from C:\windows\System32 at the same path of your script

3. Open Registry Editor and create a Key "Parameters" under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\

4. under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\\Parameters, create the following values
AppDirectory REG_SZ "C:\Current Work\Service\" < Directory path of your VB Script
Application REG_SZ wscript.exe < u can change to Wscript or cscript>
AppParameters REG_SZ "C:\Current Work\Service\one.vbs" < your VB Script Name with path

5. Open Services under Control Panel and select the Service Name which create at Step 1

Click on properties, open Logon Tab and select the Check Box 'Allow Service to Interact with Desktop'
Click ok on Properties window
Now Start the service.

Note: Whenever you change anything in your script, restart the Service

Tuesday, April 20, 2010

My processor driver is dated 2004.. is there something wrong??

Sitting alone at coimbatore airport is not fun...  Next best option.. mess around with the system!!

Took a boot time capture of my system using procmon.  Even though it didn't make much sense to me initially the following registry key was among those queried very early.. HKLM\System\CurrentControlSet\Control\Class\{50127DC3-0F36-415E-A6CC-4CB3BE910B65}

It turned out to be related to the processor.. with two subkeys named "1" and "2" which I assume is related to to my two cores of the processor..

All is well till this time.. But I am a bit surprised by the driver date of my processor.. Here is the graphic for you..


Questions: Why is the driver dated 2004.. was the original driver so stable that it did not need an update ? Or am I missing an update ???

PS: The processor device driver processr.sys also is dated "August 2004"

Monday, March 29, 2010

A call that made my day...

Was a very very busy day.. In fact so busy that I didn't even open up my own blog to check if someone commented (for which I eagerly wait) or if there are many online.. ( which I fancy ). Accept it or not guys.. we all are attention seekers.. At least I am..I would love it to see my blog getting popular.. Alas.. wishes are on one end and the reality is at other.. Yes I do know the kind of attention I could expect with all these craps I write :-)..

However ( this is a bad habit I have developed of late.. I just cant write "but".. I have this strange feeling that somebody is having an OTS (over the shoulders) view of my screen and screaming "YOU SHOULDN'T WRITE "BUT".. " ) my day was made when I received a call at night 1:30.. Wasn't slept.. It was my close friend from Gujrat on the other end.. spoke to him for some time.. and he handed the mobile to the next guy..

He too was in my college..I had lesser interaction with him while I was in college .. Still when ever we met, it wasn't less than a good friendship.. We spoke quite a while today.. And I in fact felt good.. It really feels good when some one you haven't spoken with for so many years speaks to you.. with the same warmth that was there you met last time.. Years back..

Before he dropped the call he said few things.. and those sweet few words really touched me.. Yes. I felt really good..

" I keep reading what ever you write. Its just that I don’t comment back"

 Dude !! I am being read.. I am on cloud nine.. :-)

Now I want to re-use those sweet little words for all those blogs that I read but just can't make it to comment..

"Its just that I don’t comment on your blogs.. I am reading you.. Line by line.."

Sunday, March 21, 2010

Nostalgia and loneliness made me write this...

Browsing through couple of old photographs brings in a mixed feeling.  You feel happy and a bit gloomy at the same time..

We did visit Muzhappilangad Drive-in beach some time back. It is an amazing place to be.. You can drive right close to the Sea..   On Sundays our local group used to go to the beach and play football. All fun..

 But when you go with special some one, the picture is different. This  place is absolutely romantic.. And those who want to show some driving heroics can show that off here with out taking much risks..

[caption id="attachment_249" align="aligncenter" width="300" caption="Muzhappilangad Drive-in Beach.. "][/caption]

 

[caption id="attachment_248" align="aligncenter" width="300" caption="Watching the Sea and the setting Sun.. "][/caption]

Well, places does not become special just due to the way they look.. They are special coz you have good memories associated.. :-)

Saturday, March 20, 2010

Climate is changing.. not just in hyderabad.. in kerala too..

It has been a real  hot day..  As planned, we were to go out for couple of purchases Rejin had to do before his hard earned vacation.
We started from our home at around 3:30 and could feel the sun  was just burning above our head.. To top it up, the concrete structures and the rocks were eminating the heat they accumulated from morning.. Real burning sensation.. When we reached Vipin's home.. we were half fried.. Lift didn't work as there was a power cut.. Not a nice scene altogether..

Being a resident of Hyderabad, Andhrapradesh,  people might say still it is expected.. But whats happening in Kerala.. From what I heard from those back home, things aren't any better out there.. Kerala is loosing that status of a place with moderate climate swing.. things are getting tougher..

It is not the same Gods Own Country... Its HOT AND HUMID...

We need actions now.. Hats off to guys like Shahid (http://insane-joys.blogspot.com/) .. with initiatives like Chlorophil ( http://chlorophyll.org.in/) .. It doesn't take too much of research now to understand we need now to look back and nurture mother earth.. Else.......

So those who can initiate such stuff.. Join such pro-nature movements.. we are actually helping our younger generations.. We are atleast trying to show a nice gesture back to our mother nature...