The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Creating A Batch File

    Discussion in 'Windows OS and Software' started by ArmageddonAsh, Oct 19, 2008.

  1. ArmageddonAsh

    ArmageddonAsh Mangekyo Sharingan

    Reputations:
    428
    Messages:
    3,993
    Likes Received:
    0
    Trophy Points:
    105
    so im trying to make a batch file that i can connect to one of the gaming buttons that will open and close the following programs for when im playing games:

    Rocketdock
    Objectdock
    rainmeter
    rainlender2
    Xion

    and so far i have the following:

    Start "" "C:\Program Files\r2 Studios\Xion.exe"
    Start “” "C:\Program Files\RocketDock\Rocketdock.exe”
    Start “” "C:\Program Files\Stardock\ObjectDock\ObjectDock.exe"
    Start “” "C:\Program Files\StardockC:\Program Files\Rainmeter\rainmeter.exe"
    Start “” "C:\Program Files\Rainlendar2\Rainlendar2.exe"

    but ineed help with the following:
    what do i do now?
    how do i conenct it to the gaming button?
     
  2. andyasselin

    andyasselin Notebook Deity

    Reputations:
    140
    Messages:
    1,690
    Likes Received:
    0
    Trophy Points:
    55
    why do you have start on begin of it you shound need try

    C:\Program Files\r2 Studios\Xion.exe
    C:\Program Files\RocketDock\Rocketdock.exe
    C:\Program Files\Stardock\ObjectDock\ObjectDock.exe
    C:\Program Files\StardockC:\Program Files\Rainmeter\rainmeter.exe
    C:\Program Files\Rainlendar2\Rainlendar2.exe

    and rename file something.bat that shound work
     
  3. nizzy1115

    nizzy1115 Notebook Prophet

    Reputations:
    2,557
    Messages:
    6,682
    Likes Received:
    1
    Trophy Points:
    205
    so you saved the bat file and want it to be run when you hit a "gaming button" on your keyboard?
     
  4. sterr

    sterr Notebook Guru

    Reputations:
    2
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    15
    gaming button?
    meaning a button on the mouse?
     
  5. flipfire

    flipfire Moderately Boss

    Reputations:
    6,156
    Messages:
    11,214
    Likes Received:
    68
    Trophy Points:
    466
    Try using AutoHotkey
     
  6. andyasselin

    andyasselin Notebook Deity

    Reputations:
    140
    Messages:
    1,690
    Likes Received:
    0
    Trophy Points:
    55
    well make batch file set a hotkey on keyboard two diffent thing

    what you want to do map the hotkey on keyboard to the batch file


    I asume you don,nt mean try to map it to mouse botton cause that problay wound work too good
     
  7. swarmer

    swarmer beep beep

    Reputations:
    2,071
    Messages:
    5,234
    Likes Received:
    0
    Trophy Points:
    205
    What you're trying to do should be possible, but... the easiest thing, really, is to create a second user profile... one that doesn't have all that stuff running on startup.

    But... logging out and in is not instantaneous though.

    So if you want to kill stuff in a batchfile... check out the taskkill command.

    e.g.: taskkill /IM RocketDock.exe

    Try taskkill /? to see the full option list.

    As far as the gaming button... I don't really know what button you're talking about... but if you can have it run the batch file, then you're set.
     
  8. ArmageddonAsh

    ArmageddonAsh Mangekyo Sharingan

    Reputations:
    428
    Messages:
    3,993
    Likes Received:
    0
    Trophy Points:
    105
    what so do i patse it into notepad or something?

    i have the Sager NP9262 and i have the two "gaming buttons" on the keybaord as well as the three app buttons but i dont use them either and i was hoping to make it so that when i press one "gaming button" all the programs i have mentioned stop and when i press the second button they all start back up.

    i have yet to create the batch file, i have the code above but im not sure what i need to do with it, i would rather not have to make a different user profile as that would take too long to log off and log back on just to play a game for 5-10minutes
     
  9. flipfire

    flipfire Moderately Boss

    Reputations:
    6,156
    Messages:
    11,214
    Likes Received:
    68
    Trophy Points:
    466
    Yes paste it into notepad and make sure the file extension is .bat
     
  10. ArmageddonAsh

    ArmageddonAsh Mangekyo Sharingan

    Reputations:
    428
    Messages:
    3,993
    Likes Received:
    0
    Trophy Points:
    105
    right thanx.

    is the code okay to open and close the programs, or am i missing something?