-
1. Re: Publishing multiple workbooks using tabcmd
Jeff StraussApr 3, 2017 12:47 PM (in response to balaji.kolluru)
there's no way that I know to publish multiple workbooks. But perhaps you can create a script that loops through all the workbooks in the folder and for each workbook found, then it does a tabcmd publish with substitute of the workbook name found.
-
2. Re: Publishing multiple workbooks using tabcmd
balaji.kolluru Apr 3, 2017 3:03 PM (in response to Jeff Strauss)Thanks Jeff.. It would be very helpful if you can provide some sample script if you have any.
-
3. Re: Publishing multiple workbooks using tabcmd
Glen Robinson Apr 4, 2017 7:25 AM (in response to balaji.kolluru)1 of 1 people found this helpfulHi Trinadha
A really simple example would be as follows
for %A in (C:\folder\*.twbx) do tabcmd publish -s http://localhost -u admin -p Passw0rd %A
This will publish all TWBX files in C:\folder to the Default project on the Default site of a server.
Obviously, you can make it more complex if required.
Hope this helps
Glen
-
4. Re: Publishing multiple workbooks using tabcmd
balaji.kolluru Apr 5, 2017 4:16 AM (in response to Glen Robinson)Thanks Glen for your response. I tried to implement the above command but command window is closing immediately and also no changes has been effected when I checked for latest published reports. Can you please tell me what is meant by %A .
-
5. Re: Publishing multiple workbooks using tabcmd
Glen Robinson Apr 5, 2017 4:26 AM (in response to balaji.kolluru)Hi Trinadha
You will need to do the following
Open a command prompt on your PC / Server
Change Directory to where TABCMD.EXE is installed
Run the batch command, but having changed the folder to where your Workbooks are, and server login details.
Currently, The batch command loops through the folder C:\folder and uses %A as the variable for each file when publishing to the server
Hope that makes sense
Glen
-
6. Re: Publishing multiple workbooks using tabcmd
balaji.kolluru Apr 5, 2017 7:06 AM (in response to Glen Robinson)Hi Glen,
I didn't implement your command directly. I did neccesary changes and ran the command.
-
7. Re: Publishing multiple workbooks using tabcmd
Glen Robinson Apr 5, 2017 7:22 AM (in response to balaji.kolluru)Hi
Can you let me know what the error message you received was?
-
8. Re: Publishing multiple workbooks using tabcmd
balaji.kolluru Apr 5, 2017 7:29 AM (in response to Glen Robinson)I'm not able to track as the command window gets closed as soon as I click on run
-
9. Re: Publishing multiple workbooks using tabcmd
Glen Robinson Apr 5, 2017 7:37 AM (in response to balaji.kolluru)Hi Trinadha
Please open a command window (CMD.EXE) and run the command / batch from there.
That way the results will stay on screen
Glen