The leading provider of version control solution and TWAIN SDK
The leading provider of version control solution and TWAIN SDK

Dynamsoft Forums

Support for Version Control, Bug Tracking and Configuration Management Software
* Login   * Register
* FAQ    * Search

It is currently Wed May 16, 2012 5:32 pm




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: add new files within a folder through command line
PostPosted: Thu Sep 08, 2011 10:05 pm 
Offline

Joined: Thu Sep 08, 2011 9:49 pm
Posts: 1
Hi,
I am using the command line client in an attempt to script some commands and I'm having some difficulty. I already have a repository setup with multiple folders and files in it. What I want to be able to do is script some command that will automatically add any new files within the hierarchy without having to specify the full file name. For example if I have a folder in my repository named AAA with 2 files in it, BBB and CCC. If at some point in the future a new file gets created called DDD, I would like to be able to run something like an AddFolder command recursively and have it add the DDD file without me having to specify the file name since I won't know what the new file names are going to be when they're created. When I currently try to do an AddFolder command on a directory with files that are already in the repository it crashes on the first filename that is repeated. Is there a way to continue on error through the AddFolder command so that it will see that BBB and CCC are already in my repository, but then add the file named DDD?


Top
 Profile  
 
 Post subject: Re: add new files within a folder through command line
PostPosted: Wed Sep 14, 2011 5:03 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
Hi cmonkey11,

Sorry for the delay.

Our developers have confirmed that there is a problem with the command line client: when a folder is already in the repository and you try to add it again using AddFolder command, the client will give an error that the folder already exists and cease to add the newly added files in the folder.

Our developers are modifying the command line client in order to resolve the issue. When the new client is ready, I'll send it to you via your registered email address.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: add new files within a folder through command line
PostPosted: Tue Sep 20, 2011 9:34 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
Hi cmonkey11,

After some tests, we found that the SCMAnywhere Standalone command line client scmscmd.exe can use the AddFolder command after check out/check in operations while the SourceAnywhere Standalone command line client SAWSCmd.exe doesn't support this feature.

If you're using SourceAnywhere Standalone, you can use a SDK application for synchronizing. You can download the SDK sample and the source code here.

If you're using SCMAnywhere Standalone, you can use the below commands for synchronizing.

1. scmscmd.exe checkoutfolder -server *** -port *** -username *** -pwd *** -teamproject default -folder $/backup -workdir "C:\backup" -r -skip

2. scmscmd.exe checkinfolder -server *** -port *** -username *** -pwd *** -teamproject default -folder $/backup

3. scmscmd.exe addfolder -server *** -port *** -username *** -pwd *** -teamproject default -folder $/ -workdir "C:\backup" -r

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

It is currently Wed May 16, 2012 5:32 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog