code: func (*WindowsStrategy) autostart(c context.Context, path, user string) error {
  	subs := map[string]string{
  		"BotCode": path,
  		"User":    user,
  	}
  	s, err := substitute(c, string(GetAsset(startupTmpl)), subs)
  	if err != nil {
  		return errors.Annotate(err, "failed to prepare template %q", startupTmpl).Err()
  	}
  	p, err := substitute(c, startupCfg, subs)
  	if err != nil {
  		return errors.Annotate(err, "failed to prepare path: %s", startupCfg).Err()
  	}
  
  	logging.Infof(c, "installing: %s", startupCfg)
  	// 0644 allows the startup task to be read by all users.
  	// Useful when SSHing to the instance.
  	if err := ioutil.WriteFile(p, []byte(s), 0644); err != nil {
  		return errors.Annotate(err, "failed to write: %s", p).Err()
  	}
  
  	logging.Infof(c, "starting %q", startupTask)
  	cmd := exec.Command(p)
  	setFlags(cmd)
  	if err := cmd.Start(); err != nil {
  		return errors.Annotate(err, "failed to start task %q", startupTask).Err()
  	}
  	return nil
  }
docs: // autostart configures the given Swarming bot code to be executed on startup
  // for the given user, then starts the Swarming bot process.
  // Implements PlatformStrategy.