can't create a windows service

Posted on 2006-04-08
Last Modified: 2008-01-09

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

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?

Question by:bryanlloydharris
    LVL 10

    Accepted Solution

    add "c:\windows\plink.exe -T -i c:\windows\pk.ppk -R bryanh@server"

    as a registry value to the Run registry key?
    LVL 10

    Expert Comment

    or create a Shortcut with "c:\windows\plink.exe -T -i c:\windows\pk.ppk -R bryanh@server" and stick it into the startup folder
    LVL 3

    Author Comment

    Where is the Run registry key?

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    C Drive Read / Write 10 122
    Hyper V vm 4 115
    Windows print sharing 1 39
    Need IE 6 on Win 7 or Win 10 23 56
    Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
    For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video discusses moving either the default database or any database to a new volume.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now