I wrote a simple .BAT script, I scheduled it in windows server for backup purposes. The problem is that it runs an application, but the output doesn't go in the folder it is in, it goes somewhere (I don't know where). The output is a log file and a backup file.
Here's the script:
"%JAVA_HOME%"\bin\java -jar "%~dp0jwbackup.jar"