How can I use command line to get a file in vault????

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
haughtycool
Posts: 6
Joined: Wed Aug 31, 2005 12:22 am
Contact:

How can I use command line to get a file in vault????

Post by haughtycool » Mon Sep 05, 2005 4:05 am

I use command line to get a file in vault
vault get -repository Pro_LMS -makewritable -merge overwrite -destpath "D:\" -username myusername -password mypass -host 206.100.100.16 Maintenance

Maintenence is a folder in Repository Pro_LMS

But it show the error:
<vault>
<error>
usage: GET item [...]
</error>
<result success="no" />
</vault>

I don't know how to solve it
Attachments
Vault.JPG
Vault.JPG (27.76 KiB) Viewed 2231 times
Vault.JPG
Vault.JPG (27.76 KiB) Viewed 2231 times
Regards,
haughtycool

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Mon Sep 05, 2005 8:05 am

The "maintenance" input needs to be the full path to the folder, like $/08.Maintenance".

However, it is complaining about usage, so there is another problem as well - it doesn't like "D:\" because the backslash is next to the quote. Try specifying either a forward slash or going one more folder deep, like d:\temp

haughtycool
Posts: 6
Joined: Wed Aug 31, 2005 12:22 am
Contact:

Thank you

Post by haughtycool » Mon Sep 05, 2005 7:01 pm

Thank you very much.
It work perfectly
Thanks again.
:)
Regards,
haughtycool

Post Reply