.bat Scripting Help

DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
A few months ago, I was given an MX1000 mouse as a gift. It's really nice, but I want to use one set of key mappings for games, and another set of keymaps for applications like websurfing. Each of these key maps is stored in .xml files, and to swap between the two 'profiles' I've made some .bat scripts. However, I don't know some of the .bat commands I need.


What I want the scripts to do is:

1) Stop the process/program Setpoint.exe

2) Copy the neccesary files (I know how to do this step)

3) Run setpoint.exe.


Does anyone know what commands I should use?


Much <3,
-DM

Comments

  • DiscoZombieDiscoZombie Join Date: 2003-08-05 Member: 18951Members
    I don't know the first step - or whether it's even possible to stop a process from a .bat file...

    I know the second step, but you say you do too.

    and the third step is, I believe, just the file name (C:\whereveritis\setpoint.exe)
  • BreakthroughBreakthrough Texture Artist (ns_prometheus) Join Date: 2005-03-27 Member: 46620Members, Constellation
    edited July 2005
    <a href='http://forums.techguy.org/showthread.php?t=371425' target='_blank'>hhttp://forums.techguy.org/showthread.php?t=371425</a>

    And DiscoZombie is right for the 3rd step.

    Edit: So to close it, you'd have to do this:
    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->TASKKILL /F /IM setpoint.exe<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->

    This is assuming that you have Windows XP Pro... Although there's a link in the post that I linked to that has the tools you need for XP Home, 2000, and NT (not sure if it works on 98).
  • DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
    Thanks for your help! I have XP Pro, so I can use the TASKKILL command. However, I still can't get it to run setpoint.exe. I've checked the path names, and they are accurate - maybe I need to add some kind of "run" command to that line of code?
  • CyndaneCyndane Join Date: 2003-11-15 Member: 22913Members
    I know this isn't helping, but Dragon you have broke my nerd meter... TWICE.
  • DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
    edited July 2005
    <!--QuoteBegin-Cyndane+Jul 20 2005, 08:13 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Cyndane @ Jul 20 2005, 08:13 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I know this isn't helping, but Dragon you have broke my nerd meter... TWICE. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    YUS!! <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo--> \o/

    *Does happy d0nce!*

    [EDIT] I R B0RKED THE NERD METER!

    [EDIT2] Sorry for the previous ouburst - attention from a female overloads my neural core. >_>
  • DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
    edited July 2005
    Ahh - I needed to add quotes around the "c:\logitech\setpoint.exe" command line for it to work. I'm good to go, so mucho thanks for the help guys!

    <3!

    [EDIT] No it didn't... wierd. It worked a second ago... -_-
  • ClashenClashen Join Date: 2003-08-22 Member: 20087Members
    or you can use Logigamer to switch between settings for diffrent games.
  • DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
    edited July 2005
    Ok, my .bat files are working now; what caused me to think they weren't working was that the setpoint icon sometimes failed to show up in the taskbar. However they do work, and may everyone who helped (and Cyndane) be showered with many cookies.
  • InjuryInjury Mahou Shoujo Join Date: 2002-11-10 Member: 7992Banned
    edited August 2005
    <span style='color:red'>NUKED</span>
Sign In or Register to comment.