|
-
Aug 15th, 2005, 10:47 AM
#1
Thread Starter
Addicted Member
Scheduled tasks
Is there a setting in scheduled tasks that can say dont run if process is still running?
-
Aug 15th, 2005, 12:42 PM
#2
Re: Scheduled tasks
I would schedule a batch file that first calls an exe to check the process,
If the process is not running, call the task from the exe. If it isn't, just exit it.
I don't think you can do it any better way with the task scheduler.
-
Aug 15th, 2005, 12:46 PM
#3
Thread Starter
Addicted Member
Re: Scheduled tasks
By the way the task is a vbscript.
That sounds like a good idea,
How do i check if a vbscript is running from another vbscript?
Thanks.
-
Aug 16th, 2005, 10:06 PM
#4
Re: Scheduled tasks
Have one script write a byte or two to a file, and delete it when it's done.
The other script could check for that file every few seconds if need be.
-
Aug 31st, 2005, 10:33 AM
#5
Thread Starter
Addicted Member
Re: Scheduled tasks
Do you know how to call a vbscript from within another VBScript??
Thanks,
-
Aug 31st, 2005, 01:40 PM
#6
Lively Member
Re: Scheduled tasks
I haven't used VBS in a while, but you can try the Shell(file_full_location as string) function. I think it works fine for non-EXE files, but I can't test at the moment. Good luck!
-
Aug 31st, 2005, 07:05 PM
#7
Re: Scheduled tasks
You need to call cmd first, like this:
VB Code:
Option Explicit
Private Sub Form_Load()
Shell ("C:\Windows\System32\cmd.exe /c d:\scripts\timezone.vbs "), vbNormalFocus
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|