Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

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

share|improve this answer
    
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
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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