Command Prompt

It is possible to perform operations from Windows Command Prompt (cmd.exe)

Index


Edit

Commands

You can see the list of supported commands using:

SMathStudio_Desktop.exe -silent -?

CMD help

Edit

-s or -silent

this flag enables the shell commands.

Edit

-? or -help

Prompt the help.

SMathStudio_Desktop.exe -?
SMathStudio_Desktop.exe -silent -?

Edit

-e or -export

Export worksheet(s) to supported formats.

SMathStudio_Desktop.exe -silent -e .html worksheet.sm
SMathStudio_Desktop.exe -silent -e .smz worksheet.sm "worksheet 2.sm" "worksheet 3.sm"

Edit

-i or -info

Provide a flag to display current SMath Studio installation details.

SMathStudio_Desktop.exe -silent -i

Edit

-o or -options

Specific context options. Usually used on export. This flag may be used in some specific file-export plug-in to enable options from command prompt.

SMathStudio_Desktop.exe -silent -e .html -o images=embedded worksheet.sm

Edit

-p or -print

Initiate printing of the worksheet(s) using specified printer. Set "default" to use system default printer.

SMathStudio_Desktop.exe -silent -p default worksheet.sm
SMathStudio_Desktop.exe -silent -p default worksheet.sm "worksheet 2.sm" "worksheet 3.sm"
SMathStudio_Desktop.exe -silent -p "Microsoft XPS Document Writer" worksheet.sm

Edit

-t or -test

Perform testing of the worksheet. Testing allows to verify that all calculations in the worksheet are returning the same results as last save and no new errors appear. You can even specify a path to tests all the worksheets contained into a folder.

SMathStudio_Desktop.exe -silent -t worksheet.sm
SMathStudio_Desktop.exe -silent -t worksheet.sm "worksheet 2.sm" "worksheet 3.sm"
SMathStudio_Desktop.exe -silent -t "C:\whatever"

Edit

-w

Provide maximum time in milliseconds (ms) to wait for calculation of a single worksheet. Calculation will be aborted if this time limit exceeded. 1 hour is set by default.

SMathStudio_Desktop.exe -silent -t worksheet.sm -w 60000
SMathStudio_Desktop.exe -silent -t worksheet.sm "worksheet 2.sm" "worksheet 3.sm" -w 60000


Edit

History



Edit

See also



Edit

References