Exactly what do you see in the Specify Output File dialog for your save a copy as step?
You should see $Path without any quotes or other text.
PS. You mention a sub-folder, but your $Path variable does not receive the folder name of any such sub-folder. If you are going to put the path to the desktop and also the filename in this variable, you need to also include the names of any sub-folders.
What I see is:
The file gets saved to the folder "backup" ok, but it's named $path, not the filename defined in $path!
Isn't the Specify Output File dialog box used to designate the folderthat the file is to be saved to? I really can't find a good explanation on how to use this dialog.
Are you saying I should name the folder and it's path in the script variable $path?
I'm really suprised that anything gets saved here.
A File path to a file includes all of the enclosing folders from the root directory down to the file what you seem to have put together combines the file path to the desktop with a relative path to a directory named backup that is stored at the same location as your databse file.
I'd put the entire path into the variable as:
Set Variable [ $Path ; "File:/backup/" & Let( t = Get(CurrentTimeStamp) ; Get(FileName)& "_" & Year(t) & "-" & Month(t) & "-" & Day(t) & "_" & Hour(t) & Right( "00" & Minute(t) ; 2 ) & ".fp7" ) ]
Note that I've removed Get ( DesktopPath ) as it doesn't make sense in this calculation if the directory "backup" is located next to your current copy of the database.