magicJack  and magicJack Plus Support, Reviews, FAQs and Tricks Forum Index

magicJack and magicJack Plus Support, Reviews, FAQs and Tricks


magicJack and magicJack Plus Unofficial Technical Support. Your Magic Jack and Magic Jack Plus phone service information resource
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

kill bat works, want to add line to restart w/high priority



 
Post new topic   Reply to topic    magicJack and magicJack Plus Support, Reviews, FAQs and Tricks Forum Index -> magicJack Tips and Tricks
View previous topic :: View next topic  
Author Message
TreasureGift
MagicJack User


Joined: 16 Apr 2008
Posts: 39
Location: On a mountain side in the high desert of far West Texas

PostPosted: Wed May 14, 2008 7:36 pm    Post subject: kill bat works, want to add line to restart w/high priority Reply with quote

I have gotten so much help here, I just want to thank everyone for all the contributions!

Now, on to my question. I use the kill bat to stop MJ, I would like to add a line that restarts MJ with high priority, I want it to be all in one batch file, not have to run 2 separate ones, I have experimented a bit but haven't gotten anywhere. Anyone care to help? Any suggestions (or just the actual line I need to type would be appreciated).

Here is what I have tried:

taskkill /F /IM MagicJack.exe
start /high /F /IM MagicJack.exe

It stops MJ, but doesn't restart it at all. I am using Vista.

Thanks,
Back to top
View user's profile Send private message Visit poster's website
omega10x
magicJack Apprentice


Joined: 07 May 2008
Posts: 16

PostPosted: Thu May 15, 2008 2:06 pm    Post subject: Re: kill bat works, want to add line to restart w/high prior Reply with quote

TreasureGift wrote:
I have gotten so much help here, I just want to thank everyone for all the contributions!

Now, on to my question. I use the kill bat to stop MJ, I would like to add a line that restarts MJ with high priority, I want it to be all in one batch file, not have to run 2 separate ones, I have experimented a bit but haven't gotten anywhere. Anyone care to help? Any suggestions (or just the actual line I need to type would be appreciated).

Here is what I have tried:

taskkill /F /IM MagicJack.exe
start /high /F /IM MagicJack.exe

It stops MJ, but doesn't restart it at all. I am using Vista.

Thanks,


Luckly most commands work the same as the did in windows xp and 2k..

for the Taskkill Command the /F - essentually means forcekill and /im - defines the target ...
but the start command works a little diffrent

the start command goes
Start "App.exe" /priority

start doesnt even reconize the /F or /IM commands


so try


taskkill /F /IM MagicJack.exe
start MagicJack.exe /HIGH

or to start MagicJack Minimized

taskkill /F /IM MagicJack.exe
start MagicJack.exe /HIGH /MIN

***Note*** i have found most programs are very unstable running in any priority other than normal. Atleast the user interface, so your softphone may not run correctly if you start it in high priority

A better solution might be to kill the autorun/autostart of the magicjack and run it as a service,
services are tipically higher priorty to begin with, in addition, they tipically run fairly stable if you set the to high priorty, but then you wouldnt have easy access to your softphone .. just an idea
Back to top
View user's profile Send private message
TreasureGift
MagicJack User


Joined: 16 Apr 2008
Posts: 39
Location: On a mountain side in the high desert of far West Texas

PostPosted: Tue May 20, 2008 2:13 am    Post subject: Reply with quote

OK. still working on it, adding start MagicJack.exe /HIGH does not work, just trying to run MJ from MagicJack.exe will not work, it just doesn't start anything, it only seems to run from the one called magicjackloader.exe. so I did some searching here and found the way to make MJ run without having to use the loader, you basically create a shortcut of magicjack.exe, and replace the target with the following:



start C:\Users\TreasureGift\AppData\Roaming\mjusbsp\magicJack.exe /foreground /scf _magicJackPersonalDataRoot "G:\magicJack"

Now, I can add that to the kill bat file, it looks like this:

taskkill /F /IM MagicJack.exe
start C:\Users\TreasureGift\AppData\Roaming\mjusbsp\magicJack.exe /foreground /scf _magicJackPersonalDataRoot "G:\magicJack"

It works great, it will kill MJ and restart it again without the loader running. I still want to restart it with high priority, so I added /high at the end of the second line:

taskkill /F /IM MagicJack.exe
start C:\Users\TreasureGift\AppData\Roaming\mjusbsp\magicJack.exe /foreground /scf _magicJackPersonalDataRoot "G:\magicJack" /high


, when I run that, it gives me an error:

Invalid key high specified
Do you want to open SJphone command line parameters reference?


If I choose yes, it says:

Cannot open the file:
C:\Users\TreasureGift\AppData\Roaming\mjusbsp\SJphone.chm::/sjphonecommandlineswitches.htm.



OK. now what? I have tried adding /high to the target on the shortcut to run MJ, that doesn't work either. I'm getting closer, I know it! Cool
Back to top
View user's profile Send private message Visit poster's website
TreasureGift
MagicJack User


Joined: 16 Apr 2008
Posts: 39
Location: On a mountain side in the high desert of far West Texas

PostPosted: Wed May 21, 2008 8:30 pm    Post subject: Reply with quote

Anyone??? Question
Back to top
View user's profile Send private message Visit poster's website
hotman
magicJack Apprentice


Joined: 28 Apr 2008
Posts: 20

PostPosted: Mon May 26, 2008 4:02 am    Post subject: Reply with quote

Try this It will work for you
create a batch file and put this in there.

start /High magicjack.exe

You can replace /High with any of these switches below.
/Low /BelowNormal /Normal /AboveNormal /High /RealTime "DO NOT ADD MORE THEN ONE SWITCH"
Back to top
View user's profile Send private message
TreasureGift
MagicJack User


Joined: 16 Apr 2008
Posts: 39
Location: On a mountain side in the high desert of far West Texas

PostPosted: Wed May 28, 2008 11:46 am    Post subject: Reply with quote

Thanks for the suggestion Hotman, but that doesn't work, you cannot run magicjack.exe as it is, it will do nothing. The ONLY way to get magicjack.exe to run in a bat file is to do this start C:\Users\TreasureGift\AppData\Roaming\mjusbsp\magicJack.exe /scf _magicJackPersonalDataRoot "G:\magicJack", I have tried to add /high in many places, so far none of them work, here is what I have tried so far:

taskkill /F /IM MagicJack.exe
start /high C:\Users\TreasureGift\AppData\Roaming\mjusbsp\magicJack.exe /scf _magicJackPersonalDataRoot "G:\magicJack"

taskkill /F /IM MagicJack.exe
start C:\Users\TreasureGift\AppData\Roaming\mjusbsp\magicJack.exe /high /scf _magicJackPersonalDataRoot "G:\magicJack"

taskkill /F /IM MagicJack.exe
start C:\Users\TreasureGift\AppData\Roaming\mjusbsp\magicJack.exe /scf _magicJackPersonalDataRoot "G:\magicJack" /high

taskkill /F /IM MagicJack.exe
start C:\Users\TreasureGift\AppData\Roaming\mjusbsp\magicJack.exe /scf _magicJackPersonalDataRoot "start /high G:\magicJack"


So far none of these work, what now? If someone has some advice (that has actually worked for them), I would appreciate it very much. Smile
Back to top
View user's profile Send private message Visit poster's website
stroths
Dan isn't smart enough to hire me


Joined: 02 Apr 2008
Posts: 470
Location: Dallas, TX

PostPosted: Wed May 28, 2008 1:18 pm    Post subject: Reply with quote

You could use a program like Process Lasso to set the priority.
Back to top
View user's profile Send private message
TreasureGift
MagicJack User


Joined: 16 Apr 2008
Posts: 39
Location: On a mountain side in the high desert of far West Texas

PostPosted: Wed May 28, 2008 2:02 pm    Post subject: Reply with quote

Thanks Stroths, I gave it a try, it works, I still would like to add start/high to my batch file to make it load with high priority, I don't have that much ram on my computer, 512 meg, (I know, I should get more, maybe someday...) I would rather not have to run another program to make this one program load high. It would be easier (and use less memory on my computer) if I could just add /high somewhere in the bat file.
Back to top
View user's profile Send private message Visit poster's website
sbw07
MagicJack Contributor


Joined: 01 Jan 2008
Posts: 74

PostPosted: Mon Sep 15, 2008 8:14 pm    Post subject: Reply with quote

TreasureGift wrote:
Thanks for the suggestion Hotman, but that doesn't work, you cannot run magicjack.exe as it is, it will do nothing. The ONLY way to get magicjack.exe to run in a bat file is to do this start C:\Users\TreasureGift\AppData\Roaming\mjusbsp\magicJack.exe /scf _magicJackPersonalDataRoot "G:\magicJack", I have tried to add /high in many places, so far none of them work, here is what I have tried so far:

taskkill /F /IM MagicJack.exe...

....

......


So far none of these work, what now? If someone has some advice (that has actually worked for them), I would appreciate it very much. Smile


Here's what worked for me:

Code:
taskkill /f /IM magicjack.exe
cmd.exe /c start "runhigh" /high "C:\Users\YourUserName\AppData\Roaming\mjusbsp\magicJack.exe" /foreground /scf _magicJackPersonalDataRoot "G:\magicJack"


It has to be ran as an Administrator.


Last edited by sbw07 on Wed Jan 07, 2009 4:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
dz20854
magicJack Apprentice


Joined: 13 Oct 2008
Posts: 25

PostPosted: Mon Nov 24, 2008 11:22 pm    Post subject: Reply with quote

Where do you put this code?
Back to top
View user's profile Send private message
TreasureGift
MagicJack User


Joined: 16 Apr 2008
Posts: 39
Location: On a mountain side in the high desert of far West Texas

PostPosted: Mon Nov 24, 2008 11:31 pm    Post subject: Reply with quote

dz20854 wrote:
Where do you put this code?


You make a batch file (bat file), the way you do that is to create a text file, copy the code, save it, change the file extension from .txt to .bat

it will give you a warning asking you if you really want to do it, just say yes, now you have a bat file.

I keep mine on my desktop.

Just to update, I use Process Lasso now (thanks stroths for the info on that program), it takes care of the problem, I make MJ run high instead of normal, it helps a little.
Back to top
View user's profile Send private message Visit poster's website
dz20854
magicJack Apprentice


Joined: 13 Oct 2008
Posts: 25

PostPosted: Tue Nov 25, 2008 11:38 pm    Post subject: Reply with quote

Do I put this .bat file in startup?
Back to top
View user's profile Send private message
TreasureGift
MagicJack User


Joined: 16 Apr 2008
Posts: 39
Location: On a mountain side in the high desert of far West Texas

PostPosted: Tue Nov 25, 2008 11:48 pm    Post subject: Reply with quote

dz20854 wrote:
Do I put this .bat file in startup?


I have the bat file on my desktop (not in the startup), I don't keep my Magic Jack plugged in all the time, I just plug it in when I want to use it.

I don't know what other people do with theirs.
Back to top
View user's profile Send private message Visit poster's website
sbw07
MagicJack Contributor


Joined: 01 Jan 2008
Posts: 74

PostPosted: Wed Nov 26, 2008 4:22 am    Post subject: Reply with quote

dz20854 wrote:
Do I put this .bat file in startup?


If you want mj to start with your PC, then go right ahead. (Make sure to remove the startup entries created by mj.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    magicJack and magicJack Plus Support, Reviews, FAQs and Tricks Forum Index -> magicJack Tips and Tricks All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB Turbo Extended Edition © 2010, phpBB Group