| 1. |
Solve : Backup batch? |
|
Answer» I'm trying to write a little backup script that I can have automatically execute with WINDOWS scheduler. I've got it working, but I'm trying to add some validation in so it'll tell me if it fails or not. It goes a little something like this: if %backup% == 1 suc == "" You probably mean this if %backup%==1 set suc= if %backup%==0 set suc=NOT Spaces matter in batch. ALSO you don't seem to understand the use of quotes. Batch language is not BASIC - you don't need to use quotes when assigning a string to a variable, unless you want the quotes to be part of the string. |
|