Usr_ExecShellCmd

SUMMARY

Usr_ExecShellCmd - Execute shellcommand

SYNTAX

Usr_ExecShellCmd(<Operation>,<File>,<Parameters>,<Dir>,<Show Command>)

ARGUMENTS

Operation
  • print - prints a file
  • open - executes / pictures a file
File
File name
Parameter
Delivers additional parameters
Dir
Defines the default directory
Show Command
See below.

DESCRIPTION

Steps to DOS-Level and executes command(s) there.

Show Command Function
SW_HIDE Hides the window, opens another.
SW_MAXIMIZE Maximizes the active window.
SW_MINIMIZE Minimizes the window, activates the next one.
SW_RESTORE Activates window in original size and position.
SW_SHOW Activates window in actual size and position
SW_SHOWDEFAULT Sets “show state” according to the SW_flag
SW_SHOWMAXIMIZE Deactivates window in maximum size.
SW_SHOWMINIMIZE Activates window in mimum size.
SW_SHOWMINNOACTIVE Window in min. size, active window stays active.
SW_SHOWNA Window in actual size, active window stays active.
SW_SHOWNOACTIVE Window in previous size, active window stays active.
SW_SHOWNORMAL Activates window in original size and position.

EXAMPLES

Usr_ExecShellCmd (open,tut.bat,,.,SW_SHOW)
Executes the Batch-File "tut.bat", without additional parameter, in the "." Directory, the window is opened in the currently valid size and position.


Syntax Notation
[aaa]
aaa is optional (zero or one occurences)
(aaa|bbb)
aaa exclusive or bbb
(aaa)*
aaa may occur indefinitely often or may be omitted
(aaa)+
aaa may occur indefinitely often but at least once
(aaa)m..n
aaa may occur from m to n times