Desktop Shortcut
Each flow application can create a shortcut on the desktop. Note: This feature depends on external control and is available for the Enterprise Edition.
Windows Desktop Launch
Create a new text file and rename it to: 一键启动.bat
Send it to the desktop as a shortcut.
bat
chcp 65001
@echo off
set "BAT_DIR=%cd%"
set "BAT_DIR=%BAT_DIR:\=/%"
@REM Place the bat and script in the same directory, then replace the filename after / below. The one-click startup script filename cannot contain spaces.
set "TASK_PATH=%BAT_DIR%/MainFlowExample.js"
curl "http://127.0.0.1:49888/?action=pbottleRPA_run&path=%TASK_PATH%"
exit
@REM pauseLinux Desktop Launch
Create a new text file and rename it to: 一键启动.sh
bash
#!/bin/bash
# Define the URL to access
url="http://127.0.0.1:49888/?action=pbottleRPA_run&path=TASK_PATH"
# Use curl to access the specified path and output the result
curl -s "$url"
# Check the exit status code of the curl command
if [ $? -eq 0 ]; then
echo "Access successful"
else
echo "Access failed"
fi