can you write a batch (.bat) script that will grab the (tortoise) svn repository for…
Jump to turn (18)
- 1can you write a batch (.bat) script that will grab the (tortoise) svn repository
- 2can you modify that script to use svn info instead of svn checkout?
- 3can you modify the script to store the "svn info" into a text file, along with t
- 4can you modify the above script so the output is all in one text file
- 5can you come up with a way to convert the svn\info.txt to a spreadsheet?
- 6can you restructure the output of svn\info.txt so I can convert it to a csv?
- 7that script only populated the directory column, can we fix that?
- 8now no information is brought back :(
- 9nope still the same issue, it's returning a csv with the column names but nothin
- 10once again it's got the same issue
- 11nope that didn't get it either, still have the same problem
- 12still getting a basically empty csv (aside from the column names)
- 13can you fix this version of the script:
- 14looks like that script was incomplete
- 15I don't think property and value are being set correctly; when I "echo !property
- 16the script looks incomplete
- 17the "URL" is only returning as "http", I think it's because the URL contains a "
- 18how can I append the current datetime to the svn\info.csv filename?
- User
can you write a batch (.bat) script that will grab the (tortoise) svn repository for each folder within a directory (excluding subdirectories)?
- Assistant
Yes, here is an example of a batch script that will grab the svn repository for each folder within a directory (excluding subdirectories):
code@echo off for /d %%i in (*) do ( if not "%%i" == ".." ( cd "%%i" svn checkout http://your.svn.repository.url cd .. ) )This script uses the "for /d" command to iterate through each subdirectory of the current directory. The "if not" statement is used to exclude the ".." directory, which represents the parent directory. The "cd" command is used to change the current directory to the subdirectory, and the "svn checkout" command is used to grab the svn repository. The script then changes back to the parent directory using the "cd .." command.