How to use rclone bash in windows?

this command work on linux

sh 1.sh

#!/bin/bash
inversvid="\0033[7m"
resetvid="\0033[0m"
greenback="\0033[1;37;42m"
blueback="\0033[1;37;44m"

rclone copy bot: botclone: -P -q
echo -e "$greenback Bot Complete $resetvid \n\n"

i want run this command to windows 10, how should i do?

Hi, and welcome to the forum.

Do you mean run that exact shell script? If so, you would need to enable Windows Subsystem for Linux (WSL), install MSYS2 (included in Git for Windows) or similar, to get bash.

Alternatively, you could run something very similar in PowerShell, for a more "native" Windows approach:

$esc="$([char]27)"
$inversvid="$esc[33;7m"
$resetvid="$esc[33;0m"
$greenback="$esc[33;1;37;42m"
$blueback="$esc[33;1;37;44m"

rclone copy bot: botclone: -P -q
echo "$greenback Bot Complete $resetvid `n"

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.