Talk:DSA Automatic Distribution

From DataSelf Knowledge Base
Jump to navigation Jump to search

Windows Batch file (cmd.exe) Notes

More than 1 command on a line - &

& is a special char in cmd, left & right means run left then run right.) We can see that both echo "" and echo 1 are run successfully.

Example: echo "" & echo 1

Parms with Special Characters

Passing Arguments & Argument Parsing

The fact is, there's nothing that will escape " within quotes for argument passing. You can brood over this for a couple of years and arrive at no solution. This is just some of the inherent limitations of cmd scripting.
... Official documentation for these special syntax is pretty sparse (or non-existent). Aside from /? and help, it's mostly trial-and-error.

#include <stdio.h>
int main(int argc, char *argv[]) {
int i = 0;
while (argv[i]) {
printf("argv[%d] = %s\n", i, argv[i]);
return 0;

Export Tips

Changing the Size of tabcmd Export Output

Published: 25 Jan 2013 Last Modified: 27 Aug 2013 Question PDFs that are created when you run tabcmd export fill only 2/3 of the page. Is there a way to make them larger?

Environment Tableau Server 7.0.10 and later

Answer To specify the resolution of exported PDF content, append the following parameters to a tabadmin export command:

--width PAGEWIDTH Integer value that sets the width in pixels. Default: 800 --height PAGEHEIGHT Integer that sets the height in pixels. Default: 600 For example, to export a view as a PDF with a resolution of 1024 x 768, use the following command:

tabcmd export "[URL]/[view]" --pdf --width 1024 --height 768