Zum Hauptinhalt springen

BBC.FILEOPS.SCRI.LIST-FILES

Description​

This script can be used in EXEC variables to retrieve a list of files on Linux and Windows systems

Input​

Output​

&BBCF_FILES_O#
process handle for the list of files

Details​

PropertyValue
TypeSCRI
Subtype-
FolderPACKAGES/BEST-BLU/BBC.FILEOPS/SOURCE/LIST-FILES
Activetrue
TitleLists files of a directory (used in Backend Variables)
Archive Key 1-
Archive Key 2-
CreatedSystem UC4 am: 2025-08-14 18:13:59
Last ModifiedSystem UC4 am: 2025-08-14 18:13:59 1 x
Last Used-

Custom Attributes​

No custom attributes defined.

Process​

:put_prompt_buffer BBCF_AGENT_OR_GROUP_I# = "&BBCF_AGENT_OR_GROUP_I#"
:put_prompt_buffer BBCF_DIRECTORY_I# = "&BBCF_DIRECTORY_I#"
:put_prompt_buffer BBCF_LOGIN_I# = "&BBCF_LOGIN_I#"
:put_prompt_buffer BBCF_PATTERN_I# = "&BBCF_PATTERN_I#"

:set &retv# = activate_uc_object( "BBC.FILEOPS.JOBP@IF.LIST-FILES", WAIT )
:set &data_runid# = get_published_value( &retv#, BBCF_LIST_FILES_RUNID_O# )
:p "runID: &data_runid#"
:set &rep# = prep_process_report( , &DATA_RUNID#, REP )
:set &hnd# = create_process( NEW )
:set &ret# = put_process_line( &hnd#, "File", ";" )
:process &rep#
: set &line# = get_process_line( &rep#, 1 )
: set &comment# = str_starts_with( &line#, "**" )
: if &line# = ""
: set &comment# = 'Y'
: endif
: if &comment# <> 'Y'
: p "line: &line#"
: set &ret# = put_process_line( &hnd#, "&line#", ";" )
: p "ret: &ret#"
: endif
:endprocess

:set &BBCF_FILES_O# = save_process( &hnd# )

:publish &BBCF_FILES_O#, , TOP

:close_process &hnd#
:close_process &rep#

Object Activations​

Found 1 object activations

ZeilennummerScriptzeile
7:set &retv# = activate_uc_object( "BBC.FILEOPS.JOBP@IF.LIST-FILES", WAIT )

Runtime​

ERT Method
DYNAMIC_AVERAGE
Current ERT
00 : 01 : 01 No. of past runs : 0 +ERT Correction % : 0

Sync​

No sync definitions.

Variables​

No variables defined.

Prompt Sets​

BBC.FILEOPS.PRPT.LIST-FILES​

LabelVariableTypeDefault ValueTooltip
BBCF_AGENT_OR_GROUP_I#``
BBCF_LOGIN_I#``
BBCF_DIRECTORY_I#``
BBCF_PATTERN_I#*
BBCF_LINE_PREFIX_I#``

Automatic Deactivation​

Deactivate on Finish
ALWAYS
Deactivate After
0

Runtime Parameters​

AE Priority
0
Timezone
-
Generate at runtime
true
Max. Parallel Tasks
0

Variable Publications​

Found 1 potentially dangerous variable publications (TOP)

ZeilennummerScriptzeile
28:publish &BBCF_FILES_O#, , TOP