Is it possible to update svn using a windows environmental variable folder?

I have tortoiseSVN installed alongside subversion for windows (not using TortoiseSVN command client tools because of restrictive purposes). I have a batch file that runs an svn update on certain folders which are used as environmental variables in Windows. Is it possible to svn update a folder using just the folder name?

e.g. from this:

cd C:\foo\johnsmith\testing\
svn update

to something like this?

cd testing\
svn update

I should add that environmental variables are new to me... With regards to Alrocs comment, the path C:\foo\johnsmith\testing\ is in the system environmental variable "Path".


You can't cd to directory, which is part of your $PATH$. But you can use environment variable, which explicitly contain needed path only (after all - variable is just string)

"C:\Documents and Settings\Badger"


C:\Documents and Settings\Badger>

Never assume anything about environment variables that you haven't set via your batch file. Just because it's there today/on your computer doesn't necessarily mean it'll be there tomorrow or on another computer.

But you aren't using an environment variable in your script in the first place.

If you need to update a specific path, be explicit and update that path by specifying the whole path. Don't assume that your testing directory will be an immediate child of the directory you're running the batch file in unless you can control everything else - the whole subdirectory structure, where the batch file executes from, and how it executes.

Need Your Help

How to take a screenshot for Soft Assert in Selenium or Java

java selenium selenium-webdriver

Iam trying to take a screenshot for a testcase which fails using soft Assertion.I am using softAssertion for when a particular step fails it shows the failed step in the report but continues the

Developing a Phone App

java android jquery iphone dreamweaver

I want to develop an phone app.the main functionality of this app will be, to let the user to request a Taxi(Cab) , and see all the available taxis on the google map.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.