Jump to content

Running a EXE with variables (Rainmeter)


Recommended Posts

Hello, I want to create a Run command that starts Rainmeter with "Bangs"

Bangs are the variables that rainmeter uses to kill specific skins from running.
I have figured out how to do it with:

Run(@ComSpec & " /c " & '""C:\Program Files\Rainmeter\Rainmeter.exe" !DeactivateConfig "DeuXx\Visualizer\" "Visualizer v.2.ini""', @SystemDir, @SW_HIDE)

But my question is how do I change "DeuXx\Visualizer\" and "Visualizer v.2.ini" to variables like $fileFolder and $fileINI
I'm very confused on where the " " should start and end to achieve this.

Here is my attempt:

Global $fileFolder = "Minimalist Weather Standalone\"
Global $fileINI = "Minimalist Weather.ini"

Run(@ComSpec & " /c " & '""C:\Program Files\Rainmeter\Rainmeter.exe" !DeactivateConfig"' & $fileFolder & $fileINI, @SystemDir, @SW_HIDE)

Thank you!

 

Edited by red0fireus
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...