2

Using Windows XP Task Scheduler, I've scheduled the execution of a cygwin program (C:\cygwin\bin\svn.exe update). It is working fine, but when it executes, a terminal window titled svchost.exe opens. It is very annoying.

Is it possible to execute the job without opening this window? At least it would be nice to have it run minimized.

Note: I can't add the cygwin cron service to the machine because I don't have admin permissions.

4

Cygwin's run.exe is intended for this job. See man run.

  • great! Here is my working command: C:\cygwin\bin\run.exe /usr/bin/svn commit -m 'test'. Note that I'm already on the path to be commited – neves Nov 18 '10 at 19:24
2

Here's how you can run anything without opening the window:

Just run your cygwin command with this .VBS script:

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\Batch Files\syncfiles.bat" & Chr(34), 0
Set WshShell = Nothing

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.