Wednesday, March 18, 2009

timestamp - dos batch files

below is a link to a nice doc batch timestamp

http://ings.ca/jim/2008/02/10/adding-timestamps-in-a-dos-batch-file/

Monday, March 09, 2009

svn add via batch

problem
files get added to svn, running a svn commit does not add them to the repro, since I am working to automate pulling config files from servers, etc. I want all the new files to go into the repro.

Here are my research notes and answer.


SVN batch commands for adding or deleting multiple files (Linux)
http://blog.gilluminate.com/2008/10/16/svn-batch-commands/

I am using Windows XP, VisualSVN.
took the svn file from http://unxutils.sourceforge.net/.


"c:\Program Files\VisualSVN Server\bin\svn.exe" status | sed -e "/^?/ !d" -e "s/^?//g" > filestoadd.txt

FOR /F "eol=;" %%i in (filestoadd.txt) do "c:\Program Files\VisualSVN Server\bin\svn.exe" add %%i