john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

BAT strings date improved script silent install

SET thedate=%date%

REM only take the last 4, then start at #4, take 2, then start at 7, take 2

SET theyear=%thedate:~-4%
SET themonth=%thedate:~4,2%
SET theday=%thedate:~7,2%
SET hyphen=-
SET filedate=%theyear%%hyphen%%themonth%%hyphen%%theday%

SET thetime=%time%
SET thehour=%thetime:~0,2%
SET theminute=%thetime:~3,2%
SET underscore=_

SET timestamp=%filedate%%underscore%%thehour%%hyphen%%theminute%



msiexec /I "c:\Client_Installer_64bit\" /qb /Lv* c:\%timestamp%-install.log ALLUSERS=1
  • http://unattended.sourceforge.net/installers.php
  • http://www.appdeploy.com/articles/commandline.asp
  • http://msdn.microsoft.com/en-us/library/ee251019(v=bts.10).aspx

  • « Amazon aws free tier S3
  • drupal controlling web crawlers google results »

Published

Jan 31, 2011

Category

bat-vbs-perl

~50 words

Tags

  • bat 22
  • bat-vbs-perl 51
  • date 10
  • improved 3
  • install 58
  • script 19
  • silent 4
  • strings 6