Rclone Windows 10 Terminal global environmental variable

I have rclone for Windows (.exe) under the rclone folder under my C: drive.

I am using the Terminal app that lets me use Powershell, CMD or Ubuntu. I am using the Ubuntu one.
I was wondering if there is a way to let it let me type rclone <command> in the Terminal without having to do cd /mnt/rclone and ./rclone.exe <command> every time?

I have to use the Windows one rather than the Linux one or otherwise I wouldn't be able to mount any remotes.

hi,
there are a number of ways.

the easiest way is to copy rclone.exe to c:\windows\system32

the more complex way is to edit the environment variable named path.

That worked. Thank you!

good, which way did you use?

also, rclone mount will work great on linux and wsl on windows.

I just copied the .exe file to System32.
I wonder if the other files are needed as well or not.

EDIT: I also need to type rclone.exe rather than rclone but it's okay.

rclone is a portable app, no other files are needed to run.
rclone knows how to find its config file which stores the remotes

rclone does work , no need for rclone.exe
same as running control would be equvlant to control.exe

C:\Users\user01>rclone version
rclone v1.57.0
- os/version: Microsoft Windows 10 Pro 2009 (64 bit)
- os/kernel: 10.0.22000.434 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.17.2
- go/linking: dynamic
- go/tags: cmount

rclone doesn't work.
I am accessing it from a Ubuntu Terminal app. rclone.exe works though.
Am I missing something?

so you are running ubuntu in wsl?
if correct, then to run a windows exe on wsl, need to append .exe, need to use rclone.exe

why not install rclone on wsl and then just type rclone

I tried installing rclone on wsl but it won't mount on Windows.

well, right now, i have a rclone mount on wsl, watching a video using vlc on the windows host.

rclone including rclone mount run great on wsl.
same as firefox, vlc, double commander, etc...

or run rclone mount on windows and acceess the mountpoin in wsl.

imho, running rclone.exe mount on wsl is a scary mutant of unknown outcome.

How are you doing it?

Why?

such a setup has never been tested by rclone developers. no idea if it is reliable.
works on a kludge from microsoft to allow wsl to execute windows executables.

given that rclone mount works perfectly on wsl and linux,
imho, would never trust a setup as you suggest.

same as i do on windows.

Oh now I just realized something; some of my rclone remotes are actually "locally saved" since I basically have a bunch of encrypted remotes on my PC's hard disk and I have another copy of them on Dropbox that I sync via rclone.
So that's why I am having hard time mounting the local ones using wsl.

So basically if you mount through wsl, they would show up with your c and d drive like if you were to mount natively through Windows?

sorry, not sure what you are asking.

if you rclone mount inside wsl, then windows host can access the files.

But can you mount local remotes? Remotes that are on my physical disk, not else where like Dropbox/GoogleDrive.

sure, if a device can rclone mount, then can rclone mount a local folder.

Any idea how I would mount to a drive letter via wsl?

root@DESKTOP-U7AL2JO:~/.config/rclone# rclone mount my-local-remote: X: --vfs-cache-mode full --vfs-cache-max-size 1G
2022/01/17 19:20:36 Fatal error: failed to mount FUSE fs: mountpoint does not exist: /root/.config/rclone/X:
root@DESKTOP-U7AL2JO:~/.config/rclone# rclone mount my-local-remote: /mnt/X: --vfs-cache-mode full --vfs-cache-max-size 1G
2022/01/17 19:20:53 Fatal error: failed to mount FUSE fs: mountpoint does not exist: /mnt/X:

try this
/mnt/x

root@DESKTOP-U7AL2JO:~/.config/rclone# rclone mount my-local-remote: /mnt/x --vfs-cache-mode full --vfs-cache-max-size 1G
2022/01/17 19:44:42 Fatal error: failed to mount FUSE fs: mountpoint does not exist: /mnt/x
root@DESKTOP-U7AL2JO:~/.config/rclone# rclone mount my-local-remote /mnt/X --vfs-cache-mode full --vfs-cache-max-size 1G
2022/01/17 19:44:47 Fatal error: failed to mount FUSE fs: mountpoint does not exist: /mnt/X
root@DESKTOP-U7AL2JO:~/.config/rclone# rclone mount my-local-remote: /mnt/X: --vfs-cache-mode full --vfs-cache-max-size 1G
2022/01/17 19:44:52 Fatal error: failed to mount FUSE fs: mountpoint does not exist: /mnt/X:
root@DESKTOP-U7AL2JO:~/.config/rclone# rclone mount my-local-remote: /mnt/x: --vfs-cache-mode full --vfs-cache-max-size 1G
2022/01/17 19:45:03 Fatal error: failed to mount FUSE fs: mountpoint does not exist: /mnt/x:

Didn't work either

well, on the windows host, is there an x drive?

the correct syntax is /mnt/x, a simple test on your point would reveal that

ls /mnt/B
ls: cannot access '/mnt/B': No such file or directory

ls /mnt/b:
ls: cannot access '/mnt/b:': No such file or directory

ls /mnt/b
'$RECYCLE.BIN'  'System Volume Information'   rclone