Forums list
New topics
Topics list

Topic: «How to automate AWM backups » on forum: Window Rules, or Tips and Tricks   Views: 4557
Pim Joosten
Posts: 536
Joined: 11.11.2010
Posted: 10.03.2013 03:12:03
In AWM it is possible to backup your settings manually via Tools > Configuration > Backup. It is however also possible to do this automatically with a batch file or scheduling a task in the Task Scheduler. Scheduling a task via Task Scheduler works better than using a batch file, because when running a batch you will always see a command box quickly opening and closing. That does not happen when the back-up is run from the Task Scheduler.

In a batch file include:

@echo off
cd "C:\Program Files (x86)\Actual Window Manager"
START /WAIT ActualWindowManagerCenter.exe BACKUP "X:\<path>\<filename>.zip"

The rule “C:” only needs to be included if the batch file is run from a different partition than C:. If you are running a 32-bit system the 3rd line should be cd "C:\Program Files\Actual Window Manager", without (x86) after Program Files. X:, path and filename indicate the partition, path and filename you want to set for your back-up file.

If you want to set up a task in Task Scheduler, open a new task and then enter the following:
- in the tab Actions choose Start a program
- under settings browse to ActualWindowManagerCenter.exe in C:\Program Files (x86)\Actual Window Manager (64-bit Windows) or C:\Program Files\Actual Window Manager (32-bit Windows).
- Add as arguments: BACKUP "X:\<path>\<filename>.zip"
- enter all other settings (e.g. triggers, settings) as you want to have it.

That should do the trick.
Registered user
Posts: 50
Joined: 18.03.2014
Posted: 04.10.2014 18:14:08
This is great. I didn't know there was a command line parameter for backups. Is there a list somewhere of all command line parameters?

Does the BACKUP parameter overwrite the file automatically?

Maybe %date% can also be used in the filename; I'm not sure if it works from Task Manager
Alexander Mihalkin

Posts: 502
Joined: 21.04.2014
Posted: 06.10.2014 14:47:28
Guys, thank you for your posts!


1) A list of command line parameters can be found here. And setup parameters can be found here.

2) Yes, the backup file does get overwritten without any dialogs.

3) %date% will work in batch files if your calendar settings doesn't include slashes (e.g. 2014-10-06, not 06/10/2014). And I haven't found any workaround to use %date% in Task Scheduler.

Best regards!
Charlie Markwick
Registered user
Posts: 41
Joined: 25.11.2012
Posted: 21.10.2014 05:59:35
Create a .vbs file called, say, "Hide.vbs" and then add these two lines:-

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd /k """ & WScript.Arguments(0) & """", 0, False

When you run the vbs file pass it the command as an agrument eg:-

Hide.vbs "add you backup command here"

You can concatenate: replace(date(),"/","-") into the command in hide.vbs to add the current date.

This will run in a hidden window so you can either use it as a scheduler file or invoke it on the scheduler.

User(s) reading this topic
Number of guests: 1, registered members: 0, in total hidden: 0

Forums list
New topics
Topics list