PDA

View Full Version : Add Scheduled Task failure



NewsArchive
09-29-2009, 02:11 AM
Hi Friedrich

Using SB7.0.2712

I am having problems adding command line params when adding a Scheduled Task using
SB7.

in Add Scheduled Task
I set the field
Application to Run
%_SB_INSTALLDIR%\QCFbu9.exe /a Site=1

%_SB_INSTALLDIR% is set at install time to E:\Genawise\QCFbu and the program files
install there OK.

But, the Task is set up with the Run: field as...

"E:\Genawise\QCFbu\QCFbu9.exe \a Site=1"

This will not run from scheduler... Comes back showing 'Could not start' for status.

There are two problems causing this.

1: SB7 adds double quotes around the entire setting
2: SB7 (or because of the double quotes, perhaps Windows) changes the forward slashed
param /a to a backslashed \a

Is there some way I can get the needed run setting to be...
E:\Genawise\QCFbu\QCFbu9.exe /a Site=1

or perhaps as

"E:\Genawise\QCFbu\QCFbu9.exe" /a Site=1

Thanks

JohnG

NewsArchive
09-29-2009, 02:11 AM
Ok, I found a work-around.

I knew there would be a way...
I tried creating a small .bat fale and using that, but it was messy.

Then I thought about Parameters as a separate field, and I recalled that a Shortcut
would do that (and more)

So I created a shortcut from SB7 with all the necessary details... and simply put that
into the run field that SB7 provides in Add Scheduled Task. Seems to work like a
dream!

JohnG

NewsArchive
09-29-2009, 02:12 AM
Hi John,

> in Add Scheduled Task
> I set the field
> Application to Run
> %_SB_INSTALLDIR%\QCFbu9.exe /a Site=1

"Application to run" cannot hold parameters (the underlaying Windows API
does not allow it).

From the documentation:

---
Application to Run

[in] String that specifies the fully-qualified path and file name of the
application to run.
---

I have added a new "Parameters" entry field now (see attached screenshot).
A new SB7 build will be available later today.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-30-2009, 01:58 AM
Thanks Friedrich

Perfect! as always. That will be very useful.

JohnG


>Application to Run
>
> [in] String that specifies the fully-qualified path and file name of the
>application to run.
>---
>
>I have added a new "Parameters" entry field now (see attached screenshot).
>A new SB7 build will be available later today.