Run as Service, and/or Minimize to SysTray

Advertisement

BassKozz
Joined:
Posts:
4

Run as Service, and/or Minimize to SysTray

First off I don't know if this is already possible or not, so I apologize if this is already a feature and I've missed it.

I am using WinSCP to backup my work computers to an external server. The problem I am running into is that my employees close out WinSCP either because they don't know what it is (even after the multiple emails, and notices) or the computer crashes or restarts.

I would love to have the ability to setup WinSCP as a service (so the employees can't close it out) and auto-resume transfers on restart. Or at the very least place WinSCP in the systray so it's not in the task panel.

Reply with quote

Advertisement

brif8
Guest

I would second this if possible.
I would also add that perhaps we can map the connected drive to a Windows drive?
Thus link user@host to T: or something similar

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Run as Service, and/or Minimize to SysTray

BassKozz wrote:

I would love to have the ability to setup WinSCP as a service (so the employees can't close it out) and auto-resume transfers on restart.
You will find tons of tools that allows any application run as services.

Or at the very least place WinSCP in the systray so it's not in the task panel.
If you run winscp.exe without /console parameter (with with either /command or /script), it will have no window, hence it cannot be closed.

Reply with quote

brif8
Guest

Can you suggest some tools?

and what about the drive mapping option?
T: <==> to user@remotehost:22

I have users who are so used to having Excel open and the File, Open C: \MyDocument etc....

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

brif8 wrote:

Can you suggest some tools?
You may use srvany.exe from Windows resource kit. Follow here. However I do not see a point. I guess that Windows scheduler would do the job as well. Read FAQ.

and what about the drive mapping option?
T: <==> to user@remotehost:22
Please read FAQ.

Reply with quote

Advertisement

flahver
Joined:
Posts:
2

Re: Run as Service, and/or Minimize to SysTray

I am currently running a batch script (via srvany.exe); however, winscp.com fails to execute.

If I run the .bat manually - everything works fine.
If I run the .bat as a service - everything works except winscp.com

bufrdp_sftp.bat:
...
--> "C:\Program Files\WinSCP\WinSCP.com" /script=C:\BUFR\scripts\bufrdp_sftp.txt
--> DEL /Q /F "C:\BUFR\SFTP_TEMP\*"
...

I know the rest of the .bat is running - I see files are being deleted from temp.

bufrdp_sftp.txt:

--> option batch on
--> option confirm off
--> open testClient:testClient@10.32.31.20
--> put C:\BUFR\SFTP_TEMP\* /BUFR/BUFR_IN/
--> exit

Why would WinSCP fail as a service?

Any help is much appreciated : )

btw - one heck of a product - wtg !!

Reply with quote

flahver
Joined:
Posts:
2

PostRe: Run as Service, and/or Minimize to SysTray

:oops: my bad >.<

- using "/ini=C:\<path>\<file>.ini" option and all is well

thanks!

Reply with quote

Advertisement

Eru
Guest

Windows Service

It would be really helpful to have built in support for running as a service. I'm using it on my Windows Server 2003 box that doesn't usually have a user logged into it. I install it as a service so that I can access it even fresh out of a reboot, and run commands/transfer files.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Windows Service

Eru wrote:

It would be really helpful to have built in support for running as a service. I'm using it on my Windows Server 2003 box that doesn't usually have a user logged into it. I install it as a service so that I can access it even fresh out of a reboot, and run commands/transfer files.
What prevents you from using Windows Scheduler?

Reply with quote

sluice
Joined:
Posts:
9

Re: Windows Service

martin wrote:

Eru wrote:

It would be really helpful to have built in support for running as a service. I'm using it on my Windows Server 2003 box that doesn't usually have a user logged into it. I install it as a service so that I can access it even fresh out of a reboot, and run commands/transfer files.
What prevents you from using Windows Scheduler?
If the server from which it is run is turned off when Scheduler would run the command, then there could be a gap of, say, 24 hours, until the Scheduler ran the command again. If Scheduler were to try to run the command while it was already running in keepuptodate mode, then error messages would be generated.I don't want to run it from Startup since no-one may be logged in.
I would prefer not to run 3rd party tools to force it into Run as a service, so it would be very useful to run as a service, if possible.

Reply with quote

Advertisement

You can post new topics in this forum