Enosh Bansode
Enosh Bansode

Reputation: 1778

Setting SVN Environment var from batch file

How to set environmental var from batch file for SVN I tried setting it like ...

Variable name: SVN_SSH

Variable value: C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe or C:/Program Files/TortoiseSVN/bin/TortoisePlink.exe

However this is or no use. I am using Windows 7.

Upvotes: 1

Views: 3662

Answers (2)

Enosh Bansode
Enosh Bansode

Reputation: 1778

TortoiseProc.exe /command:commit /path:"c:\svn_wc\file1.txt*c:\svn_wc\file2.txt" /logmsg:"test log message" /closeonend:0

TortoiseProc.exe /command:update /path:"c:\svn_wc\" /closeonend:0

TortoiseProc.exe /command:log /path:"c:\svn_wc\file1.txt" /startrev:50 /endrev:60 /closeonend:0

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-automation.html

Upvotes: 2

J.N.
J.N.

Reputation: 8431

Did you install SVN ? I am not clear with what you want to do. Can you tell me what is your final goal ? It'll be easier to help.

Tortoise doesn't provide the "svn.exe" program. You need to install the command line SVN client. You can find a list of those clients here. Alternatively you can try using Tortoise EXEs but, I am not sure whether their command line is compatible with SVN.

Then you need to set your PATH environment variable where you installed your command line client.

Upvotes: 2

Related Questions