File not found error when running batch file with Task Scheduler
- Posts: 4
- Joined: 13 Jan 2021
These are the parameters of Task Scheduler:
"C:\Program Files\FreeFileSync\FreeFileSync.exe" "C:\SCRIPT\BatchRun.ffs_batch"
Can anyone help me to understand why is FreeFileSync to look for the batch file in that wrong location?
- Posts: 943
- Joined: 8 May 2006
Per the image, "C:\windows\system32\C:\SCRIPT\BatchRun.ffs_batch" will certainly be wrong as the syntax is invalid. (There is no space between the \system32\ & the C:\.)
And that points me to the Task Scheduler.
From that, it seems that the path part pointing to FreeFileSync.exe belongs in Program/script,
& the argument, your .ffs_batch path/name belong in the Add arguments: section.
Together, in that fashion, I'd think you should get your wanted results.
And that points me to the Task Scheduler.
From that, it seems that the path part pointing to FreeFileSync.exe belongs in Program/script,
& the argument, your .ffs_batch path/name belong in the Add arguments: section.
Together, in that fashion, I'd think you should get your wanted results.
- Posts: 4
- Joined: 13 Jan 2021
But as you can see the path is correct... so I don't understand why I am getting the error
- Posts: 3582
- Joined: 11 Jun 2019
By the error, it looks like it is a FFS error, so the program location is correct, but the argument is getting the extra "C:\Wind....m32\" location somehow. I can't see the end of the test, but make sure you have an ending quotation (") after ["C:\SCRIPT\BatchRun.ffs_batch]
Double check that the path to the ffs_batch file is correct
Double check that the path to the ffs_batch file is correct
- Site Admin
- Posts: 7049
- Joined: 9 Dec 2007
Maybe the typo is in the right part of "batchrun.ffs" that is cut off in the picture.
- Posts: 4
- Joined: 13 Jan 2021
really not able to understand why FFS is adding "C:\windows\system32\" before the location of the batch file...
- Site Admin
- Posts: 7049
- Joined: 9 Dec 2007
A hidden Unicode character could be the explanation. Something after the quote of "C:\SCRIPT
Test: Copy and paste the string into a text editor and check with a hex editor.
Test: Copy and paste the string into a text editor and check with a hex editor.
- Site Admin
- Posts: 7049
- Joined: 9 Dec 2007
And if that doesn't help: Send me a crash dump of FreeFileSync while it is showing the error message and I'll have a closer look: https://freefilesync.org/faq.php#crash
- Posts: 4
- Joined: 13 Jan 2021
SOLVED!!!!!!!!!A hidden Unicode character could be the explanation. Something after the colon of "C:\SCRIPT
Test: Copy and paste the string into a text edit and check with a hex editor. Zenju, 15 Jan 2021, 08:52
there was a hidden character after " and before C
thank you so muccccchhhhhhhhhhhhhhh!!!!!
- Posts: 3582
- Joined: 11 Jun 2019
So weird lol
Glad you got it sorted!
Glad you got it sorted!
- Site Admin
- Posts: 7049
- Joined: 9 Dec 2007
Which Unicode character was it?