I am getting this error message Command copy needs 2 arguments minimum when trying to copy some files into another folder. I only want to copy new files inside a folder that already have files.
This are my commands that I use
—works——
Work without spaces in folder names and sync everything inside _CSYNC folder
try moving the quote to the very beginging before MYOWN_REMOTE instead of the middle of the path. That whole line including the name of the remote is one parameter, so you want the quotes around the whole thing typically, or at least that is the safest way. I don't know if your syntaxt is technically valid or not.
I am only using one command at once. Each of that commands is the single line I input when using rclone. This is how I do it;
open CMD window
cd.. multiple times until root of C
then cd rclone
and inside that directory i paste some of the previous commands and that´s all.
I don´t know how to make a super command that don´t need (manually) to travel all the way back to root to access the rclone folder
Just append the path to the executable to the start of the command
short example:
C:\rclone\rclone size MyGoogleDrive
instead of:
cd..
cd..
cd rclone
rclone size MyGoogleDrive:
If there are spesific commands or sets of commands you use often you might want to put your commands into a txt file and rename it into a .bat - then you can simply click it to run in windows. It's also a great way to automate unattended tasks.
Hi @thestigma it worked very well. The only thing is that the window automatically close after finishing the process instead of keeping opened as the usual long way, is there any command I need to add to keep opened so I can check if there were any error or something?
if you want to change the current working drive and the current working directory, this is a better option.
as you can see, the current drive B: and the current directory is \
the cd /d changes the current drive to C: and the current working directory to \rclone
B:>cd /d c:\rclone\
C:\rclone>rclone.exe --version
rclone v1.49.1
and if you want to keep the window open after rclone has finished, you really should create a .cmd file and run that, add the pause command at the end.
but you seem to want to re-type each and every command, each and every time, so you need to combine two commands on one line like so:
C:\rclone>rclone --version & pause
rclone v1.49.1
os/arch: windows/amd64
go version: go1.12.3
Press any key to continue . . .
How this works depends on how you launch the command.
If you open up a CMD window and then type in the command then it should not automatically close the window after the command is done.
If on the other hand you run the command directly from RUN or use something like "start rclone version" from another CMD or a script then it will launch another window that automatically closes when done.
As asdffdsa says, simply putting "pause" at the end of your command, or bottom of your script is always an option too.
It sounds to me like what you really want here are some simple scripts to do common tasks. That is generally better (and much easier to understand for you I bet) than trying to make "super commands" as you say. You could certainly make very advanced one-line commands that would do a lot of things all at once, but they will end up looking pretty cryptic and hard to understand for a beginner.
Pretty much all users with a little know-how use scripts to run all often-repeated jobs (often completely automated). Manually inputting it all would get boring quickly
If you want me to make you a few basic batch examples for your most common tasks then just let me know (just tell me what the tasks and commands are, as well as where rclone is installed). Then you can use those examples as a guide to make your own later on as your needs grow more complicated.