Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
424 B

  1. #
  2. #
  3. #
  4. if [ "$1" = "" ]; then
  5. echo "Usage: $0 <filename>"
  6. exit 10
  7. fi
  8. if [ "$2" = "" ]; then
  9. job=`date |sed 's/ /_/g'`
  10. else
  11. job=$2
  12. fi
  13. # 2 = Keep Log and Data
  14. history=2
  15. compressed=false
  16. persist=true
  17. cscript test3_DeleteAllJobs.vbs
  18. cscript test1_CreateJob.vbs $job $history $compressed $persist
  19. cscript test4_SetData.vbs $job `cygpath -w $1`
  20. cscript test5_ActivateSync.vbs $job