# Directory separator

**URL:** https://talk.remobjects.com/t/directory-separator/1282
**Category:** Train
**Created:** [October 3, 2012, 2:00pm UTC](https://talk.remobjects.com/t/directory-separator/1282 "2012-10-03T14:00:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vladk](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/v/cdc98d/32.png) [@vladk](https://talk.remobjects.com/u/vladk)
#### Post date: [October 3, 2012, 2:00pm UTC](https://talk.remobjects.com/t/directory-separator/1282/1 "2012-10-03T14:00:36Z")

</div>

Ok, I’m testing Train now. First thing I try is the following:

shell.exec(“c:/Program Files (x86)/CollabNet/svn.exe checkout svn://foo.com/bar d:/Bar/Source”);

Running…  
D:\BuildMachine\Train\>train Bar.train  
RemObjects Train - JavaScript-based build automation  
Copyright © RemObjects Software, 2012. All rights reserved.  
script(Bar.train) {  
shell.exec(c:\Program Files (x86)\CollabNet\svn.exe checkout svn:\[foo.com](http://foo.com)\bar d:\Bar\Source undefined) {  
Error when calling Process.Execute: The system cannot find the file specified  
} shell.exec(c:\Program Files (x86)\CollabNet\svn.exe checkout svn:\[foo.com](http://foo.com)\bar d:\Bar\Source)  
} script

Seems like there’s a trouble when mixing slashes and back-slashes in one line. I was playing with path.directorySeperator (as well as various combinations of slashes), but no success.

So, how should I properly use shell.exec() in my case?

Thanks,  
Vladimir Kudelin

---

<div class="post-metadata">

### Author: ![vladk](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/v/cdc98d/32.png) [@vladk](https://talk.remobjects.com/u/vladk)
#### Post date: [October 3, 2012, 2:05pm UTC](https://talk.remobjects.com/t/directory-separator/1282/2 "2012-10-03T14:05:54Z")

</div>

Btw, just noticed…

Train wiki says: path.directorySep\*\*\*e\*\*\*rator.

Is that a typo in the documentation or in the method name?

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [October 3, 2012, 2:34pm UTC](https://talk.remobjects.com/t/directory-separator/1282/3 "2012-10-03T14:34:48Z")

</div>

Fixed the typo. thanks!  
what you want to do here is split it in two, args generally are separate:  
shell.exec(“c:/Program Files (x86)/CollabNet/svn.exe”, “checkout svn://foo.com/bar d:/Bar/Source”);
