Associate files to QBMS

Doubts, help and support about QuickBMS and other game research tools
Racial
Posts: 12
Joined: Thu May 05, 2016 10:53 pm

Associate files to QBMS

Post by Racial »

Hi, im trying to associate files to Quick BMS to take an adventage of file browser.
For example i've got a file ".file1" and i want that type of files with the script "file1.bms" on "quickbms.exe"

There is a way to force Quick BMS to open with a X script loaded?
There is a way to force Quick BMS to select output same as file directory?


Sorry if this is solved

Thanks for reading
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Associate files to QBMS

Post by aluigi »

For the files associations I suggest you:
http://www.nirsoft.net/utils/file_types_manager.html

First you have to create the extension association:
  • Edit->New File Extension
  • in Extension put the extension including the dot, for example .file1

Then select the new association and:
  • Actions->New Action
  • Action Name: Open
  • Command-Line: browse and select quickbms.exe and add the arguments as I will show you later

You have to play with the syntax depending by your needs and where the scripts are located:
http://ss64.com/nt/syntax-args.html

Let's say you have all the scripts in the same folder of quickbms, the output folder is the same folder of the input file and the name of the script is "script.bms":

Code: Select all

quickbms.exe "%~dp0script.bms" "%1" "%~dp1"


(note: unfortunately the %~x1.bms can't be used because adds a dot before the extension and so .ext.bms instead of ext.bms)