CLC: how to add several files at once?

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

CLC: how to add several files at once?

Post by Tri » Tue Jun 21, 2005 11:55 am

Client + Server 3.07.

Working folder C:\myProject contains *.doc and *.txt files. I would like to add all *.doc into $/myProject Vault folder.

Please note: I don't want to add the entire C:\myProject folder because $/myProject already exist.

I've tried unsuccessfully:
Vault ADD (conection options etc.) $/myProject C:\myProject\*.doc
Error = *.doc file not found.

Is there anyway for CLC to recognize wildcard file specs for ADD, CHECKOUT?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Jun 21, 2005 12:18 pm

According to vault.exe help, wildcards are supported in Get and Checkout but not Add. You need to use the -wildcard option.
Linda Bauer
SourceGear
Technical Support Manager

Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

Post by Tri » Tue Jun 21, 2005 2:37 pm

I have already tried -wildcard option. It is ignored.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Jun 21, 2005 2:55 pm

Could you send me your command? Email to Linda at Sourcegear.com
Linda Bauer
SourceGear
Technical Support Manager

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Wed Jun 22, 2005 1:12 pm

Wildcard does not work for ADD. You can get and checkout and using wildcards, but for gets, use the GETWILDCARD command and for Checkout use the -wildcard option.

Examples:

GETWILDCARD:

vault GETWILDCARD -host host -user username -password password -repository Repositoryname $/ReposFolder *.txt

CHECKOUT

vault CHECKOUT -host host -user username -password password -repository Repositoryname $/Reposfolder -wildcard *.txt
Linda Bauer
SourceGear
Technical Support Manager

Locked