How to add files from command line to groove workspace?

K

keving

I have several files on a server that I need to copy by batch schedule file
(i.e. command line) into a groove workspace for sync distribution. Can this
be done and if so, how?

I can do this fine for files outside a workspace - I can just copy the files
to a local folder and that folder is synchronised in groove - but not in a
workspace...

Any help appreciated...

Thanks
Kevin
 
M

Mark Smith

This is trivially easy using our Bambuco scripting engine for Groove.
Something like this

class AddFile (GrooveScript):
def Main():
try:
spaceName = CommandLine[1]
filesToolName = CommandLine[2]
filename = CommandLine[3]

space = Groove.GetSpace(spaceName)
return if space == null

filesTool = space.GetFilesTool(filesToolName)
return if filesTool == null

filesTool.Root.Importfile(filename)


If you want a demo, let me know.
 
K

keving

Hi Mark,

This looks great - just what I need if I can call such a function from
command line - can you get me a demo so I can start using...

THanks
Kevin

Mark Smith said:
This is trivially easy using our Bambuco scripting engine for Groove.
Something like this

class AddFile (GrooveScript):
def Main():
try:
spaceName = CommandLine[1]
filesToolName = CommandLine[2]
filename = CommandLine[3]

space = Groove.GetSpace(spaceName)
return if space == null

filesTool = space.GetFilesTool(filesToolName)
return if filesTool == null

filesTool.Root.Importfile(filename)


If you want a demo, let me know.

--
Regards
Mark Smith
http://www.infopatterns.com



keving said:
I have several files on a server that I need to copy by batch schedule file
(i.e. command line) into a groove workspace for sync distribution. Can this
be done and if so, how?

I can do this fine for files outside a workspace - I can just copy the files
to a local folder and that folder is synchronised in groove - but not in a
workspace...

Any help appreciated...

Thanks
Kevin
 
M

Mark Smith

You can email me direct - (e-mail address removed) or grab my Groove
vCard from http://www.infopatterns.com/company.aspx


--
Regards
Mark Smith
http://www.infopatterns.com



keving said:
Hi Mark,

This looks great - just what I need if I can call such a function from
command line - can you get me a demo so I can start using...

THanks
Kevin

Mark Smith said:
This is trivially easy using our Bambuco scripting engine for Groove.
Something like this

class AddFile (GrooveScript):
def Main():
try:
spaceName = CommandLine[1]
filesToolName = CommandLine[2]
filename = CommandLine[3]

space = Groove.GetSpace(spaceName)
return if space == null

filesTool = space.GetFilesTool(filesToolName)
return if filesTool == null

filesTool.Root.Importfile(filename)


If you want a demo, let me know.

--
Regards
Mark Smith
http://www.infopatterns.com



keving said:
I have several files on a server that I need to copy by batch schedule file
(i.e. command line) into a groove workspace for sync distribution. Can this
be done and if so, how?

I can do this fine for files outside a workspace - I can just copy the files
to a local folder and that folder is synchronised in groove - but not in a
workspace...

Any help appreciated...

Thanks
Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top