BotreamDocs Website Türkçe v0.1.1

Files & Folders commands

file · folder · zip

file File

File operations.

Actions (--action)

--action:copy
ParameterValueDefaultDescription
--source requiredtextA file on the agent machine.
--destination requiredtextA file on the agent machine.
--overwritetrue / falsefalse
--action:move
ParameterValueDefaultDescription
--source requiredtextA file on the agent machine.
--destination requiredtextA file on the agent machine.
--overwritetrue / falsefalse
--action:rename
ParameterValueDefaultDescription
--path requiredtextFile path A file on the agent machine.
--newname requiredtext
--action:delete
ParameterValueDefaultDescription
--path requiredtextFile path A file on the agent machine.
--action:exists
ParameterValueDefaultDescription
--path requiredtextFile path A file on the agent machine.
--output requiredvariable nameVariable that receives the result
--action:getinfo
ParameterValueDefaultDescription
--path requiredtextFile path A file on the agent machine.
--output requiredvariable nameVariable that receives the result
--action:read
ParameterValueDefaultDescription
--path requiredtextFile path A file on the agent machine.
--encodingtextutf-8
--output requiredvariable nameVariable that receives the result
--action:write
ParameterValueDefaultDescription
--path requiredtextFile path (created when missing) A file on the agent machine.
--content requiredany value
--encodingtextutf-8
--modeone of overwrite, appendoverwrite
--action:append
ParameterValueDefaultDescription
--path requiredtextFile path (created when missing) A file on the agent machine.
--content requiredany value
--encodingtextutf-8
--action:wait
ParameterValueDefaultDescription
--path requiredtextFile path A file on the agent machine.
--timeoutnumber60Timeout in seconds
--retrynumberNumber of retry attempts. When not set, screen and file commands try once more after a passing problem (a page still loading, a covered element, a locked file); 0 turns that off
--retryintervalnumber1Seconds between retries

Examples

file --action:delete --path:"C:\Temp\export.csv" --onerror:continue --errorto:deleteError
if --condition:"$deleteError$ != null"
    log --message:"Could not delete the export: $deleteError.Message$" --level:warning
endif
file --action:copy --source:"C:\a.txt" --destination:"C:\backup\a.txt" --overwrite:true
file --action:move --source:"C:\a.txt" --destination:"D:\archive\a.txt" --overwrite:true
file --action:rename --path:"C:\a.txt" --newname:"b.txt"
file --action:delete --path:"C:\a.txt"
file --action:exists --path:"C:\a.txt" --output:fileExists
file --action:read --path:"C:\data.txt" --encoding:"utf-8" --output:content
file --action:write --path:"C:\output.txt" --content:$result$ --encoding:"utf-8" --mode:overwrite
file --action:append --path:"C:\log.txt" --content:"New line of text"
file --action:getinfo --path:"C:\a.txt" --output:fileInfo
file --action:wait --path:"C:\incoming\report.csv" --timeout:60

folder Folder

Folder operations.

Actions (--action)

--action:create
ParameterValueDefaultDescription
--path requiredtextFolder path A folder on the agent machine.
--action:empty
ParameterValueDefaultDescription
--path requiredtextFolder path A folder on the agent machine.
--action:copy
ParameterValueDefaultDescription
--source requiredtextA folder on the agent machine.
--destination requiredtextA folder on the agent machine.
--action:move
ParameterValueDefaultDescription
--source requiredtextA folder on the agent machine.
--destination requiredtextA folder on the agent machine.
--action:rename
ParameterValueDefaultDescription
--path requiredtextFolder path A folder on the agent machine.
--newname requiredtext
--action:delete
ParameterValueDefaultDescription
--path requiredtextFolder path A folder on the agent machine.
--forcetrue / falsefalse
--action:exists
ParameterValueDefaultDescription
--path requiredtextFolder path A folder on the agent machine.
--output requiredvariable nameVariable that receives the result
--action:getinfo
ParameterValueDefaultDescription
--path requiredtextFolder path A folder on the agent machine.
--output requiredvariable nameVariable that receives the result
--action:listfiles
ParameterValueDefaultDescription
--path requiredtextFolder path A folder on the agent machine.
--filtertext*.*
--subfoldertrue / falsefalseInclude subfolders
--output requiredvariable nameVariable that receives the result
--action:listfolders
ParameterValueDefaultDescription
--path requiredtextFolder path A folder on the agent machine.
--subfoldertrue / falsefalseInclude subfolders
--output requiredvariable nameVariable that receives the result

Examples

folder --action:create --path:"C:\NewFolder"
folder --action:copy --source:"C:\Source" --destination:"D:\Backup\Source"
folder --action:move --source:"C:\Source" --destination:"D:\Archive\Source"
folder --action:rename --path:"C:\OldName" --newname:"NewName"
folder --action:delete --path:"C:\TempFolder" --force:true
folder --action:exists --path:"C:\Reports" --output:folderExists
folder --action:getinfo --path:"C:\Reports" --output:folderInfo
folder --action:listfiles --path:"C:\Reports" --filter:"*.pdf" --subfolder:false --output:fileList
folder --action:listfolders --path:"C:\Projects" --output:folderList
folder --action:empty --path:"C:\Temp"

zip Zip

Compresses files and folders into a .zip file, extracts one and lists what is in it.

Actions (--action)

--action:compress

Files go into the archive under their name, folders under their name with everything inside them.

ParameterValueDefaultDescription
--source requiredany valueA file, a folder, a list variable or comma-separated paths
--destination requiredtextZip file to write (replaced when it exists) A file on the agent machine.
--action:extract
ParameterValueDefaultDescription
--file requiredtextZip file A file on the agent machine.
--destination requiredtextFolder to extract into (created when missing) A folder on the agent machine.
--overwritetrue / falsetrueReplace files that already exist
--action:list

The paths of the files in the archive, as a list.

ParameterValueDefaultDescription
--file requiredtextZip file A file on the agent machine.
--output requiredvariable nameVariable that receives the result

Examples

zip --action:compress --source:"C:\Reports" --destination:"C:\Out\reports.zip"
zip --action:compress --source:$files$ --destination:"C:\Out\files.zip"
zip --action:extract --file:"C:\In\data.zip" --destination:"C:\In\data" --overwrite:true
zip --action:list --file:"C:\In\data.zip" --output:entries
Botream 0.1.1 · Generated 2026-10-14