can't create a windows service

Hi,

I tried to create a windows service using the srvany program, but it didn't work.

Here is the command line I would like to make into a service.
c:\windows\plink.exe -T -i c:\windows\pk.ppk -R 1729:foo.com:80 bryanh@server

It is a command to tunnel a port over ssh.  It doesn't run in the background, it just waits for me to press [control]-c.  While it is running it forwards information to localhost:1729 to port 80 on foo.com.

I would like to always run this when the computer is on.  It doesn't have to be a service if there is another way.  Does anybody know how to do this?

Thanks!
LVL 3
bryanlloydharrisAsked:
Who is Participating?
 
sakuya_suCommented:
add "c:\windows\plink.exe -T -i c:\windows\pk.ppk -R 1729:foo.com:80 bryanh@server"

as a registry value to the Run registry key?
0
 
sakuya_suCommented:
or create a Shortcut with "c:\windows\plink.exe -T -i c:\windows\pk.ppk -R 1729:foo.com:80 bryanh@server" and stick it into the startup folder
0
 
bryanlloydharrisAuthor Commented:
Where is the Run registry key?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.