# Check in files in batch

**URL:** https://www.finalbuilder.com/forums/t/check-in-files-in-batch/591
**Category:** Discussion
**Created:** [September 26, 2007, 9:06am UTC](https://www.finalbuilder.com/forums/t/check-in-files-in-batch/591 "2007-09-26T09:06:43Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![chanmy8](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@chanmy8](https://www.finalbuilder.com/forums/u/chanmy8)
#### Post date: [September 26, 2007, 9:06am UTC](https://www.finalbuilder.com/forums/t/check-in-files-in-batch/591/1 "2007-09-26T09:06:43Z")

</div>

Hi,

Which action should I use to check in multiple files in batch for Vault?

Thank you

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [September 26, 2007, 9:48am UTC](https://www.finalbuilder.com/forums/t/check-in-files-in-batch/591/2 "2007-09-26T09:48:36Z")

</div>

Hi Chan,   
  
 The Vault Check In action will do the trick as long as all the files you want to check in are in the same repository (ie. you set the repository field and leave the files section blank).   
  
 afaik Vault doesn’t allow you to specify wild cards with this command - if you need this kind of functionality, I’d recommend you ask on the Vault newsgroups.   
  
 .t8

---

<div class="post-metadata">

### Author: ![chanmy8](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@chanmy8](https://www.finalbuilder.com/forums/u/chanmy8)
#### Post date: [September 27, 2007, 5:01am UTC](https://www.finalbuilder.com/forums/t/check-in-files-in-batch/591/3 "2007-09-27T05:01:41Z")

</div>

Hi,

You might need this...

http://support.sourcegear.com/viewtopic.php?t=8695

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [September 28, 2007, 1:39am UTC](https://www.finalbuilder.com/forums/t/check-in-files-in-batch/591/4 "2007-09-28T01:39:44Z")

</div>

Thanks for the link.   
  
 I think you’re referring to the BATCH command, right? If so, then this is no difference to having multiple Vault Check In actions (I think - it might be faster, but you still have to build the filelisting). And what you could do in FinalBuilder is use a FileIterator (which supports wildcards) and indent the Vault Check In action under it.   
  
 .t8

---

<div class="post-metadata">

### Author: ![chanmy8](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@chanmy8](https://www.finalbuilder.com/forums/u/chanmy8)
#### Post date: [September 28, 2007, 3:15am UTC](https://www.finalbuilder.com/forums/t/check-in-files-in-batch/591/5 "2007-09-28T03:15:53Z")

</div>

Hi,

Currently, I am using FileIterator and put Check in action under it. However, I found that, the check would be "partial" if any one of them failed.

I would like to have atomic checkin, so that my check in action is either ALL OR NONE.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [September 28, 2007, 5:27am UTC](https://www.finalbuilder.com/forums/t/check-in-files-in-batch/591/6 "2007-09-28T05:27:25Z")

</div>

does the BATCH command do all the various checkins atomically?

---

<div class="post-metadata">

### Author: ![chanmy8](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@chanmy8](https://www.finalbuilder.com/forums/u/chanmy8)
#### Post date: [September 28, 2007, 6:40am UTC](https://www.finalbuilder.com/forums/t/check-in-files-in-batch/591/7 "2007-09-28T06:40:04Z")

</div>

Hi,

Yes, it support atomic.

I changed my way to checkin/checkout multiple files. May I know how checkin/checkout action call vault command line if I specify multiiple files in this action? Does it call Vault.exe multiple time or one time with file list as parameter?

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [October 4, 2007, 3:30am UTC](https://www.finalbuilder.com/forums/t/check-in-files-in-batch/591/8 "2007-10-04T03:30:24Z")

</div>

Sorry for the late reply - it calls the vault.exe once with all the files in a parameter.
