| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-Injected-Via-Gmane: | http://gmane.org/ |
| To: | cygwin AT cygwin DOT com |
| From: | Stephen Powell <stephen_powell AT optusnet DOT com DOT au> |
| Subject: | Re: cron and hibernate |
| Date: | Thu, 16 Oct 2003 15:58:16 +1000 |
| Organization: | Hail Eris! |
| Lines: | 31 |
| Message-ID: | <uekxdvi4n.fsf@privacy.net> |
| References: | <3F8DF567 DOT 3040501 AT math DOT mun DOT ca> |
| Mime-Version: | 1.0 |
| X-Complaints-To: | usenet AT sea DOT gmane DOT org |
| User-Agent: | Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) Hamster/2.0.2.2 |
| Cancel-Lock: | sha1:YnfcA3uVd1RYBtcVr7hm9ZjC7vo= |
On Wed, 15 Oct 2003, ypeng AT math DOT mun DOT ca wrote:
> I have been using Windows own TaskScheduler so far. What I don't
> like it is that it cannot run jobs silently at background,
> particularly when a job is a batch file or a bash script. Whenever
> such a job is started, an annoying DOS window pops up and it also
> occupies my taskbar.
Running a Visual Basic program under wscript doesn't open a window.
For example to run a sh script:
--Begin P.vbs--
Dim objShell, intErr
Set objShell = CreateObject("Wscript.Shell")
intErr = objShell.Run("C:\cygwin\bin\sh.exe /c/somePath/P.sh", 0, True)
Wscript.Quit(intErr)
--End P.vbs--
and schedule it as
"C:\WINDOWS\SYSTEM32\WSCRIPT.EXE //b c:\somePath\P.vbs"
under the task scheduler.
--
Stephen Powell
stephen_powell AT optusnet DOT com DOT au
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |