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...

Friday, March 19, 2010

What happens when you think too complex...

Being with an escalated support team is fun.. people aren't satisfied unless you follow your statement with a
root cause..

One ground rule: Things can't fail for simple reason.. It has to be something really complex about the failure.. about the behaviour..

However, at times complex thinking proves too expensive. Here is what happened today.

My team lead started experiencing a very strange issue with his mail client. When ever he forwards an email to any one, it is lost from his inbox view.. He figured out that under an option called "All Documents" his mails were safe.. He was concerned so were we..

An immediate quick meeting was called and action items were charted

  • Take the back up of the mail data base

  • To do that, get an alternate laptop, configure it for back to back connection and dump the data on to it.

  • Our lotus notes expert wanted to try a "Design" replace option to see if any of the "Templates" were corrupt. Once the back up was completed, he was  to try that.


Backup went fine. We assembled back to discuss the strategy further.

I thought something related to "Automatic Inbox Cleaning"  agent was playing the trick. Opened the backend script and tried to see if I could find something interesting..

With my halfcooked knowledge, I have enlightened the whole team about the possibility of an automatic inbox cleaning up happening and why it did not happen on my system and why it didn't happen to my lead last week and.......

We took control of the impacted system again.. Asked our lead to test it once again before we were game for the big operation.. Alas.. The issue repeated.. So we called operation mail client "START"

Meanwhile, our only sensible team mate ( at least for the moment) decided to hit the "Insert" button, which is for marking an email "read". To our surprise, that mail too vanished.

He then took the mouse control... Selected a small menu on the right hand top corner.. which initially read " VIEW UNREAD MAILS ONLY"..

He changed it to "VIEW ALL MAILS" and everthing was back to normal..

The whole team was dumb for few moments.. which was followed by uncontrollable laughter..

Sometimes.. it helps if you dont think too complex.. :-)

Cheers guys...

I have pasted the below sticker on my old home door( sreekarun.livejournal.net)

It goes like this..
( http://sreekarun.livejournal.com/14672.html )

"Yes. I found a new place to write online.. :-)

The decision to move over to a new place does not mean I was feeling restricted with free online journals and publishing tools. But I always wanted to know first hand on how to set up a website.. What is like owning one.. and what goes behind setting up a site..

I knew I need to register a domain and then would need some web space to launch it.. Google helped me find a list of providers from which I zeroed in to Znetindia.com. There may be other providers equally or more competative, didn't want to do that extend of research anyway..

They allowed me to register my site sreekarun.net for around 450 Rs an year.. That was one part of it.. To host my site, I started looking for options and they were offering linux based solutions and windows based solutions.. PHP + Mysql attracted me than ASP.. Hence decided with the linux version and paid around 1000 Rs for 6 months hosting charges..

The control panel interface that znetindia has is awsome. Hardly did I talk to their tech experts. setting up things were a cake walk with tools provided in the control panel interface..

Next question was what to put in there.. Did some research on the available components and faced with terms like bulletin board softwares... Content Management Softwares and blogging softwares..

The look and feel of Mambo CMS attracted me initially.. played around with it and finally managed to get a site up under the tag portal.sreekarun.net.. I did write some articles in Live journals back in 2009 and this year too. rewriting them or individually porting them sounded painful.. CMS had lot options and some time felt too many... Moreover I couldn't find a way to add a comment option for my articles and manage them...

I Sat back and though for a while. I realized most of the things that I want to publish are blog like artcles. So decided to try the blogging software, wordpress..

Wordpress impressed me.. Lot of themes. Widgets.. configuration options .. You may even configure it as a CMS. So sticked to it.. Wrote a small php to redirect all traffic to http://sreekarun.net to http://sreekarun.net/blogs

Having tried many themes in Wordpress I am now using F2. One more great thing that made my life sweet is the import functionality.. it allowed me to import all my livejournal posts along with comments to my wordpress blog.. Great isn't it..

I have added couple of widgets like a clock and word of the day.. it all works well..

I think I am happy with the move over.. Atlest till the time znetindia send me a reminder email mentioning my hosting expiry date..

:-)"

Thursday, March 18, 2010

A quick and dirty way to run a command prompt under system context

A quick and dirty way to run a command prompt under system context

Pre-requisite: you must have administrator previlege

Open up a command prompt and create a scheduled task using at command..

c:\> at "14:01" /interactive "cmd.exe"

this would start a new shell at 14:01.. dont forget to change the time as per your requiremnt when you try this..

What would you want to do once you get access to this shell.. Well system account is the most powerful account on your system.. Yes.. more than you "Administrator" account..

Have fun guys..

Wednesday, March 17, 2010

Something about ADS

Windows Alternate Data Streams is one thing you would like to explore.. A nice article in beeping computers explains it well.

www.bleepingcomputer.com/tutorials/tutorial25.html

The command line option to start the embedded exe is not working for Win7 though.. May be something changed ???

Saturday, February 27, 2010

Hey.. This is new in Win 7 - Attaching vdisk

Win7 supports attaching vdisks and manipulating it natively.

So next time you have a .vhd file with you, you might want to try if you can attach that using diskpart.. And yes. The diskpart.exe now supports a new create option..

Create vdisk

Have fun guys..