I'm writing my first batch script on Windows (Server 2012 R2) which eventually I want to schedule with FMS.
If I type the following command in PowerShell, it works as expected, but in the Command Prompt, it gives the error "Error: 10904 (No applicable files for this operation)"
fmsadmin BACKUP --dest 'filewin:/C:/Program Files/FileMaker/FileMaker Server/Data/Backups/DailyS3/' --keep 7 -u admin -p [password]
When I put this in a file and name it "something.bat", and open the file, it uses the command prompt, and therefore it does not work.
How can I make this command run in a batch file?
Note: My reason for wanting to create a batch file for the backup is because I want to add additional commands to upload it somewhere else immediately after the backup completes.