I'm using /cmd command as part of a rename script.
strCommand = """" & DOpusRTPath & """ /cmd Copy TO CREATEFOLDER=""" & dest1 & """"
Shell.Run strCommand,0,false
strCommand = """" & DOpusRTPath & """ /cmd Copy TO CREATEFOLDER=""" & dest2 & """"
Shell.Run strCommand,0,false
strCommand = """" & DOpusRTPath & """ /cmd Copy TO CreateFolder=""coll://Copied/{date|yyyy'-'MM}"" COPYTOCOLL=member"""
Shell.Run strCommand,0,false
''' assume dest1, dest2 are something like "c:\123", "d:\abc". DOpusRTPath is the path to dopusrt
Is it possible to combine all the calls to a single line? Or do I need to execute dopusrt.exe for every command?
Also, how to I open all the 3 locations [dest1, dest2, collection] as 3 tabs in the most efficient way?
Hi there atazur, sorry but no... you can only execute a single Opus command using dopusrt. So I think your best alternative is to define an Opus "User" command that does all three native Opus actions. You'll need to pass all the parameters needed for all three actions to this single user command, and then sort out the parms in the command.
User commands are created under Settings->Customize->Commands->Category: User... check out the manual for more details and/or search and ask for help here if you get stuck.
Those User commands look great - I wasn't aware of them [and I'm using Opus for 5 years now].
By the way, and sorry for mixing different topics, the last command in my script - that copies into a collection - gives me an error when the file is already in a collection. Is there a way to suppress that error? [skip and force didn't do it]
I don't know what option to use to supress the copy to collection error you're getting... might need a feature request for better handling of such a case... the various "WHENEXISTS" arguments don't seem to work with collections.