JG Vimalan's Blog

It is all about coding!

Passing parameter to .NET application from registry

I got a task where my .net application starts at reboot. It expects a parameter to perform certain actions while starting. So, inorder to pass parameter from the registry, I made an entry as shown below in the Run key under HKEY_LOCAL_MACHINE

“C:\Users\JGVimalan\mygames\mygametray.exe” %1

this ‘1’ will be passed as a parameter to the .net application.


November 26, 2010 - Posted by | C#.NET

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: