🥳
KevinNitro's Rclone cheat sheet
  • README
  • Rclone mount Windows
Powered by GitBook
On this page
  • 1️⃣ SOME REQUIREMENTS
  • INSTALL SILENTCMD
  • SET ENV FOR RCLONE & SILENT CMD
  • 2️⃣ CREATE A BATCH SCRIPT 📜
  • 4️⃣ SET UP RUNNING MOUNT SCRIPT 🏃‍♂️
  • Addition:
  • 5️⃣ RUN RCLONE MOUNT AT STARTUP 🪟
  • Easiest way:
  • More controlable way:
  • 6️⃣ MAKE THE SHORTCUT BE VISIBLE IN PROGRAM LIST + START MENU

Was this helpful?

Edit on GitHub

Rclone mount Windows

Guide for Mounting Remotes using Rclone for Windows

PreviousREADME

Last updated 1 year ago

Was this helpful?

This is my trick to use rclone mount command. If it isn't efficient and you have another efficent, easy way, feel free to create an issue or create a pull request 🥰


1️⃣ SOME REQUIREMENTS

INSTALL SILENTCMD

What is it? 🤔

  • It helps to run commands silently, not open the cmd window

Installation ⚙️

  1. Go to

  2. Download from , extract and put it in a folder

SET ENV FOR RCLONE & SILENT CMD

You should also set environment path for Rclone to make it easier to use 😪


2️⃣ CREATE A BATCH SCRIPT 📜

The directory where the batch script locates doesn't matter, you can create it in any directory

  1. Create a batch file (Ex: Mount.bat)

  2. Edit it (Ex: Notepad) and put the below script inside the batch file

    Mount.bat
    set rclone_command=replace_your_rclone_command_here
    
    set website_to_ping=google.com
    
    :CHECK_CONNECTION
    ping %website_to_ping% -n 1 > nul
    if %errorlevel% neq 0 (
        timeout /t 5 > nul
        goto CHECK_CONNECTION
    )
    
    start SilentCMD %rclone_command%
    
    timeout /t 2
    
    taskkill /f /im SilentCMD.exe
  3. Replace your command in the script above 👆

    Ex of my rclone mount script:

    rclone mount CombineNeccessary: Z: --cache-dir "D:\Program Files\Rclone Cache" --vfs-cache-mode full --network-mode --volname "Cloud Storages" --no-modtime --no-checksum --buffer-size=512M --vfs-cache-max-age 72h

    See more about rclone command to use it as your demand 😪

  4. Copy the full path of the script above for the below step

In step 3, if you don't set env for SilentCMD & Rclone, you will have to replace the full path of the .exe file of those programs

Click here to see the explanation of the script above
  • First, it will ping to google.com, if it fails, it will retry to ping until it successes

  • After pinging successfully, it will start SilentCMD to run Rclone mount command

  • After 2 seconds waiting, it will terminate (End task) all the SilentCMD itself

With SilentCMD, Rclone doesn't run under any terminal, cmd,... So after terminating SilentCMD, Rclone still works 😤


4️⃣ SET UP RUNNING MOUNT SCRIPT 🏃‍♂️

  1. Right-click anywhere to open Context Menu --> New --> Shortcut

  2. Type the location of the item: SilentCMD "the_full_path_of_batch_script" --> Next

  3. Type a name for this shortcut: Anything you want (Ex: Rclone mount)

In step 2, if you don't set env for SilentCMD, you have to enter the full path of .exe of SilentCMD

Addition:

Change icon for shortcut:

  1. Open its properties (Alt + Enter)

  2. Click on Change icon...: Browse to the icon file You can use rclone.exe's icon


5️⃣ RUN RCLONE MOUNT AT STARTUP 🪟

Easiest way:

  1. Windows + R: shell:startup

  2. Copy & Paste the shortcut you created from the previous step

More controlable way:

Use task schedule which I'm not good at using it 🥴

6️⃣ MAKE THE SHORTCUT BE VISIBLE IN PROGRAM LIST + START MENU

  1. Windows + R: shell:Common Programs

  2. Copy & Paste the shortcut you created from the previous step

And now you can search for the shortcut in search bar 🔎

SilentCMD repo
Release page
Page cover image