Command Line
Before using any command line parameters please ensure that you have sufficient command line experience and you know exactly what you are doing.
Since reWASD 5.8, we have added the ability to use several features through Command Line in Windows.
In DOS, OS/2, and Microsoft Windows, a batch file is a text file containing a series of commands intended to be executed by the command interpreter. Similar to job control language and other systems on mainframe and minicomputer systems, batch files were added to ease the work required for certain regular tasks by allowing the user to set up a batch script to automate many commands.
When a batch file is run, the shell program (usually COMMAND.COM or cmd.exe) reads the file and executes its commands, normally line-by-line. Batch files are useful for running a sequence of executables automatically and are often used to automate repetitive or tedious processes. DOS batch files have the filename extension .bat.
The general format of commands:
reWASDCommandLine.exe [Command] [options]
The square brackets are not a part of the command. Command keywords must be preceded by two hyphens, options must be put in quotes.
Please note that you should navigate to the reWASD folder to launch reWASDCommandLine.exe. By default, you should use the following command: cd C:\Program Files\reWASD
Some commands use the Device ID parameter. To find it, please choose the device or the group you are working with in reWASD GUI, right-click to open the context menu and choose Copy device ID option.
Commands
apply
Applies a config to a certain slot of the device
Syntax: apply --id [device ID] --path "[config location]" --slot [slot#]
Options:
- --id: to get the ID for a certain device in reWASD interface, right-click the device you want to get the ID from, and choose Copy device ID
- --path: to find where your config is stored, right-click a certain config and choose Open file location option; then copy the path, and add the name of the config file to it, along with the file extention
- --slot: slot1; slot2; slot3; slot4
Example: reWASDCommandLine.exe apply --id 318984554375544835;318984554375544834 --path "C:\Users\Public\Documents\reWASD\Profiles\Profile1\Controller\Config1.rewasd" --slot slot1
select_slot
Make a certain slot active
Syntax: select_slot --id [device ID] --slot [slot#]
Options:
- --id: to get the ID for a certain device in reWASD interface, right-click the device you want to get the ID from, and choose Copy device ID
- --slot: slot1; slot2; slot3; slot4
Example: reWASDCommandLine.exe select_slot --id 318184554375544835;318934554375544834 --slot slot1
clear_slot
Remove the config from a chosen slot
Syntax: clear_slot --id [device ID] --slot [slot#]
Options:
- --id: to get the ID for a certain device in reWASD interface, right-click the device you want to get the ID from, and choose Copy device ID
- --slot: slot1; slot2; slot3; slot4
Example: reWASDCommandLine.exe clear_slot --id 318184554375544835;318934554375544834 --slot slot1
remap
Change the state of remap
Syntax: remap --id [device ID] --state on\off
Options:
- --id: to get the ID for a certain device in reWASD interface, right-click the device you want to get the ID from, and choose Copy device ID
- --state: represents the state of remap, that can be either on or off
Example: reWASDCommandLine.exe remap --id 318184554375544835;318934554375544834 --state on
version
Display the current reWASD and Protocol version
Syntax: version
Example: reWASDCommandLine.exe version
help
Display the list of available commands
Syntax: help
Example: reWASDCommandLine.exe help