Topic review

There was a problem with the way i gathered info about errorlevel throughout the whole script

martin

2010-03-19

So what is the difference between the two scripts?

Bascy

2010-03-17 13:15

Mmm, just tested it with a bare script ... and i have to agree with you
The errorlevel is not set to 1 on a "nothing to synchronize"

Guess my problem is caused by something else

martin

Re: Errorlevel is set to 1 when there is nothing to synchronize

2010-03-17

Bascy wrote:

I'm using a script to synchronize a remote dir with a local one
After executing the script I examine the errorlevel var to see if everything is alright and noticed that errorlevel is set to 1 (or higher) when synchronize says "nothing to syncrhonize"

I do not think this is true. Are you sure that the errorlevel is 0 when there is anything to synchronize?

Bascy

Errorlevel is set to 1 when there is nothing to synchronize

2010-03-16 13:32

I'm using a script to synchronize a remote dir with a local one
After executing the script I examine the errorlevel var to see if everything is alright and noticed that errorlevel is set to 1 (or higher) when synchronize says "nothing to syncrhonize"

I think this is not correct, as the execution is done correctly, no errors occured. So errorlevel should be 0 in this situation.