com.ontimize.windows.office
Class ScriptUtilities
java.lang.Object
com.ontimize.windows.office.ScriptUtilities
- public class ScriptUtilities
- extends java.lang.Object
Class that allows to execute command files in Windows systems.
- Author:
- Imatia Innovation
|
Method Summary |
static java.io.File |
createTemporalFileForScript(java.lang.String script)
|
static ExecutionResult |
executeScript(java.lang.String archive,
java.lang.String parameters)
|
static ExecutionResult |
executeScript(java.lang.String archive,
java.lang.String parameters,
int with)
|
static ExecutionResult |
executeScript(java.lang.String archive,
java.util.Vector pa)
|
static ExecutionResult |
executeScript(java.lang.String archive,
java.util.Vector parameters,
int with)
|
static boolean |
fillAndPrintWordDocument(java.lang.String archive,
java.util.Hashtable valuesDescriptions)
Prints and fills a word document replacing Hashtable keys by correspondent
descriptions. |
java.util.Vector |
listAccessDBReports(java.lang.String bdArchive)
|
static void |
main(java.lang.String[] args)
|
boolean |
printAccessDBReport(java.lang.String bdArchive,
java.lang.String report,
java.lang.String conditions)
|
boolean |
report2Snapshot(java.lang.String bdArchive,
java.lang.String report,
java.lang.String dest,
java.lang.String conditions)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static boolean DEBUG
SCRIPT_COMMAND
public static final java.lang.String SCRIPT_COMMAND
- See Also:
- Constant Field Values
SCRIPT_COMMAND_W
public static final java.lang.String SCRIPT_COMMAND_W
- See Also:
- Constant Field Values
CSCRIPT
public static final int CSCRIPT
- See Also:
- Constant Field Values
WSCRIPT
public static final int WSCRIPT
- See Also:
- Constant Field Values
ScriptUtilities
public ScriptUtilities()
executeScript
public static ExecutionResult executeScript(java.lang.String archive,
java.util.Vector pa)
throws java.lang.Exception
- Throws:
java.lang.Exception
executeScript
public static ExecutionResult executeScript(java.lang.String archive,
java.util.Vector parameters,
int with)
throws java.lang.Exception
- Throws:
java.lang.Exception
executeScript
public static ExecutionResult executeScript(java.lang.String archive,
java.lang.String parameters)
throws java.lang.Exception
- Throws:
java.lang.Exception
executeScript
public static ExecutionResult executeScript(java.lang.String archive,
java.lang.String parameters,
int with)
throws java.lang.Exception
- Throws:
java.lang.Exception
listAccessDBReports
public java.util.Vector listAccessDBReports(java.lang.String bdArchive)
throws java.lang.Exception
- Throws:
java.lang.Exception
printAccessDBReport
public boolean printAccessDBReport(java.lang.String bdArchive,
java.lang.String report,
java.lang.String conditions)
throws java.lang.Exception
- Throws:
java.lang.Exception
fillAndPrintWordDocument
public static boolean fillAndPrintWordDocument(java.lang.String archive,
java.util.Hashtable valuesDescriptions)
throws java.lang.Exception
- Prints and fills a word document replacing
Hashtable keys by correspondent
descriptions. Max. length for description is 255 characters.
- Parameters:
archive - The name of filevaluesDescriptions - Hashtable with texts and descriptions
- Returns:
- true Whether document has been filled and printed correctly
- Throws:
java.lang.Exception - When a Exception occurs
report2Snapshot
public boolean report2Snapshot(java.lang.String bdArchive,
java.lang.String report,
java.lang.String dest,
java.lang.String conditions)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
createTemporalFileForScript
public static java.io.File createTemporalFileForScript(java.lang.String script)
throws java.lang.Exception
- Throws:
java.lang.Exception