Hi
I am new to Freelfilesync and probably stupid but need to create a windows batch file to run a scheduled sync. The batch file has to mount a drive before running FFS
my batch files are in a folder c:\batch
Batch file command line is as follows
"C:\Program Files\FreeFileSync\FreeFileSync.exe" c:\Batch BatchRun.ffs_batch
I get the black cmd window and this error message window
cannot find c:\batch
can anyone help
I am using windows 7 pro
command line cannot find batch file folder
- Posts: 3
- Joined: 9 Mar 2022
-
- Posts: 4867
- Joined: 11 Jun 2019
Change
"C:\Program Files\FreeFileSync\FreeFileSync.exe" c:\Batch BatchRun.ffs_batch
to
"C:\Program Files\FreeFileSync\FreeFileSync.exe" "c:\Batch BatchRun.ffs_batch"
"C:\Program Files\FreeFileSync\FreeFileSync.exe" c:\Batch BatchRun.ffs_batch
to
"C:\Program Files\FreeFileSync\FreeFileSync.exe" "c:\Batch BatchRun.ffs_batch"
- Posts: 3
- Joined: 9 Mar 2022
Thanks for the response
Have tried with quotes andNow I get cannot find file "c:\Batch BatchRun.ffs_batch"
Have tried with quotes andNow I get cannot find file "c:\Batch BatchRun.ffs_batch"
-
- Posts: 4867
- Joined: 11 Jun 2019
oh wait
change it to
"C:\Program Files\FreeFileSync\FreeFileSync.exe" "c:\Batch\BatchRun.ffs_batch"
change it to
"C:\Program Files\FreeFileSync\FreeFileSync.exe" "c:\Batch\BatchRun.ffs_batch"
- Posts: 3
- Joined: 9 Mar 2022
Hi
thanks that works. I could not understand the space instead of a backslash but that is what comes up on a search of commandline help.
my issue is sorted Thanks
thanks that works. I could not understand the space instead of a backslash but that is what comes up on a search of commandline help.
my issue is sorted Thanks
-
- Posts: 4867
- Joined: 11 Jun 2019
Glad it works!
Spaces and backslashes are completely independent. A space is just a space but a backslash denotes a directory traversal in this case. "C:\Batch\BatchRun.ffs_batch" tells Windows that "BatchRun.ffs_batch" is inside "C:\Batch"
Spaces and backslashes are completely independent. A space is just a space but a backslash denotes a directory traversal in this case. "C:\Batch\BatchRun.ffs_batch" tells Windows that "BatchRun.ffs_batch" is inside "C:\Batch"