Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 08-09-2009, 07:50 AM
HankL
Newsgroup Contributor
 
Posts: n/a
ERROR CODE ON SCHEDULED TASK

I am receiving the following error code under column LAST RUN RESULT (0X1)

When I use an Attribute that has a single word, i.e. Paperport, I set it up as space -RPaperport and it works just fine. The final result is (0x0) successful
When I use an Attribute that has two single words with a space between them, I set it up as "space-Special Sites" and the final result is (0x1) and is not successful

--
Thank you in advance for your support and suggestions,

HankL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 08-09-2009, 07:50 AM
  #2 (permalink)  
Old 08-09-2009, 08:40 AM
VanguardLH
Newsgroup Contributor
 
Posts: n/a
Re: ERROR CODE ON SCHEDULED TASK

HankL wrote:
[color=blue]
> I am receiving the following error code under column LAST RUN RESULT (0X1)
>
> When I use an Attribute that has a single word, i.e. Paperport, I set it up as space -RPaperport and it works just fine. The final result is (0x0) successful
> When I use an Attribute that has two single words with a space between them, I set it up as "space-Special Sites" and the final result is (0x1) and is not successful[/color]

Is "attribute" what the rest of us call command-line parameters? Rather
than describe just a tiny portion of the entire event defined in Task
Scheduler, show more details, like the *complete* command that you pass
in the event (i.e., what it runs) for when the event runs okay and when
it fails. I'm guessing that you aren't properly employing double quotes
to delimit the command or you are including them around the parameters
(which means you are passing one parameter, not two, and that the
program aborts because it is then an undefined parameter).

After defining the event for when it generates the failure code, what
happens if you copy the *entire* command line for the event and run it
in a command prompt? If the program's executable isn't available via
the currently defined PATH environment variable, you will need to 'cd'
to the directory where the executable is located. The same is true in
the event's definition: if the executable isn't in the PATH, you need to
either specify the full path to the executable or specify the executable
file's path in the start-in field for the event.

Did you look at Task Scheduler's log (advanced menu)? It rolls over so
you have to find where is the "[ ***** Most recent entry is above this
line ***** ]" delimiter line showing the rollover point and look at the
events above that line.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 08-09-2009, 12:30 PM
HankL
Newsgroup Contributor
 
Posts: n/a
Re: ERROR CODE ON SCHEDULED TASK

Thank you very much for your reply.

In answer to your questions,

1) Is "attribute" what the rest of us call command-line parameters? Answer 'Arguments'

2) *complete* command that you pass> in the event This is a typical line and format that received the error message (0x1)Answer "C:\Program Files (x86)\SyncToy2.0\SynctoyCmd.exe" -R"Garage My Pictures"

3) Event that ran OK Answer "C:\Program Files (x86)\SyncToy2.0\SyncToyCmd.exe" -Quicken

4) After defining the event for when it generates the failure code, what[color=blue]
> happens if you copy the *entire* command line for the event and run it
> in a command prompt? If the program's executable isn't available via
> the currently defined PATH environment variable, you will need to 'cd'
> to the directory where the executable is located. Answer 'I attempted to run the line in CMD as shown above in answer 2) and it did not execute'[/color]

5) you will need to 'cd' DO NOT UNDERSTAND WHAT YOU MEAN BY 'CD'[color=blue]
> to the directory where the executable is located. The same is true in
> the event's definition: if the executable isn't in the PATH, you need to
> either specify the full path to the executable or specify the executable
> file's path in the start-in field for the event.[/color]

6) Did you look at Task Scheduler's log (advanced menu)? Answer I could not locate the Task Scheduler's Log (advanced menu)

Just as a bit of information, I am fairly new at using Scheduled Task and would really appreciate your indulgence with that in mind. If could you be just a little bit more specific with your instructions in a more detailed manner I feel I could follow your instructions and hopefully get my scheduled items to work properly. I have a total of16 schedules that need to work. Two are working and 14 or not.Yet I feel I used the same actions in all but only changed the 'Arguments' as it related to each schedule task.

Again, many thanks for taking your time to assist and give me support.

HankL



"VanguardLH" <V@nguard.LH> wrote in message news:h5mqep$mrc$1@news.albasani.net...[color=blue]
> HankL wrote:
> [color=green]
>> I am receiving the following error code under column LAST RUN RESULT (0X1)
>>
>> When I use an Attribute that has a single word, i.e. Paperport, I set it up as space -RPaperport and it works just fine. The final result is (0x0) successful
>> When I use an Attribute that has two single words with a space between them, I set it up as "space-Special Sites" and the final result is (0x1) and is not successful[/color]
>
> Is "attribute" what the rest of us call command-line parameters? Rather
> than describe just a tiny portion of the entire event defined in Task
> Scheduler, show more details, like the *complete* command that you pass
> in the event (i.e., what it runs) for when the event runs okay and when
> it fails. I'm guessing that you aren't properly employing double quotes
> to delimit the command or you are including them around the parameters
> (which means you are passing one parameter, not two, and that the
> program aborts because it is then an undefined parameter).
>
> After defining the event for when it generates the failure code, what
> happens if you copy the *entire* command line for the event and run it
> in a command prompt? If the program's executable isn't available via
> the currently defined PATH environment variable, you will need to 'cd'
> to the directory where the executable is located. The same is true in
> the event's definition: if the executable isn't in the PATH, you need to
> either specify the full path to the executable or specify the executable
> file's path in the start-in field for the event.
>
> Did you look at Task Scheduler's log (advanced menu)? It rolls over so
> you have to find where is the "[ ***** Most recent entry is above this
> line ***** ]" delimiter line showing the rollover point and look at the
> events above that line.[/color]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 08-09-2009, 02:10 PM
VanguardLH
Newsgroup Contributor
 
Posts: n/a
Re: ERROR CODE ON SCHEDULED TASK

Hankl, STOP POSTING IN HTML! When posting in newsgroups, always use
plain text. Configure Windows Mail to use text when posting to
newsgroups.

HankL wrote:
[color=blue]
> In answer to your questions,
>
> 1) Is "attribute" what the rest of us call command-line parameters?
> Answer: 'Arguments'
>
> 2) *complete* command that you pass in the event
> This is a typical line and format that received the error message
> (0x1)
> Answer: "C:\Program Files (x86)\SyncToy2.0\SynctoyCmd.exe"
> -R"Garage My Pictures"
>
> 3) Event that ran OK
> Answer: "C:\Program Files (x86)\SyncToy2.0\SyncToyCmd.exe" -Quicken[/color]

So the problem is SyncToy fails when you attempt to specify the folder
pair that you want it to synchronize. Did you ever define that folder
pairing (named "Garage My Pictures") in SyncToy? Does SyncToy complete
the synchronization okay when you run SyncToy and do the update using
its UI?

I only meant to address how to solve problems in Task Scheduler. It has
been several years since I toyed with SyncToy. If you need help with
that program then start a new thread about SyncToy and using
command-line parameters (arguments) for it. From playing with SyncToy
years ago, my recollection is that you have to define folder pairings
(i.e., what you wanted to synchronize). It is those names for those
pairings that you probably need to specify for the -R parameter.

From [url]http://www.itechtalk.com/member687-albums555-5671.png[/url], it looks
like you have to use the History tab (when looking at the properties of
an event) and then review Details tab to find out what happened.
[color=blue]
> 4) After defining the event for when it generates the failure code,
> what happens if you copy the *entire* command line for the event and
> run it in a command prompt? If the program's executable isn't
> available via the currently defined PATH environment variable, you
> will need to 'cd' to the directory where the executable is located.
> Answer: I attempted to run the line in CMD as shown above in answer 2)
> and it did not execute'[/color]

If the command fails at a command prompt then it will also fail when ran
by a scheduled event. The command must first work when executed by
itself for it to also work as a scheduled event.
[color=blue]
> 5) you will need to 'cd'
> DO NOT UNDERSTAND WHAT YOU MEAN BY 'CD'[/color]

'cd' is the change directory command at a DOS prompt (i.e., when you are
at a command prompt). If the path to an executable isn't found by using
the PATH environment variable (or through a registry value) then you
will get an error of "not found" or "not defined" when you try to
execute the unknown program. If not in the PATH (or registry), you need
to 'cd' to the directory where the executable file resides and then
enter your command. However, as you pointed out above, you do know the
full path to the executable file.
[color=blue]
> 6) Did you look at Task Scheduler's log (advanced menu)?
> Answer I could not locate the Task Scheduler's Log (advanced menu)[/color]

I'm still using Windows XP but assumed that Task Scheduler in Windows
Vista still lets users see its logfile. There is no Advanced menu?
From the images for the link above, yep, Microsoft altered the UI for
Task Scheduler but the log (history) is still available.

That image was taken from the following online help guide and which
addresses how to use Task Scheduler under Windows Vista:

[url]http://www.windowsvistauserguide.com/task_scheduler.htm[/url]
[color=blue]
> Two are working and 14 or not.Yet
> I feel I used the same actions in all but only changed the
> 'Arguments' as it related to each schedule task.[/color]

To reiterate, the command must first work at a command prompt before you
can specify it in a scheduled event. From the above comments, the
program failed when you ran it from the command line, so it also fail
when loaded by a scheduled event.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Task Scheduler Error Code information? Peter Meinl Windows Vista 3 03-23-2009 11:27 PM
Scheduled task error BBran Windows XP 4 02-19-2009 06:37 AM
Scheduled task Victor Windows XP 1 12-06-2008 12:20 PM
What happens if a scheduled task is scheduled to start, but theprevious task execution is still running? joe.carr@gmail.com Windows XP 1 12-17-2007 11:40 AM
How to Read Scheduled Task Last Result from Registry for a task Sakthi Windows XP 1 07-19-2007 10:50 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 01:04 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0