topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 3:21 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: SOLVED: ReOpenDitto  (Read 5542 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
SOLVED: ReOpenDitto
« on: June 22, 2012, 03:12 PM »
I need Ditto.
Provisionally I would need a script for :

Kill the task
ditto.exe

Reopen Ditto or execute again

I have the application as portable in
Y:\DittoPrg\DittoPortable3.16.8.0\Ditto\Ditto.exe

So I would a coding snack able to kill a process (taskkill.exe /im ditto.exe /f

and then open again the application

I have tried with a bat. But for me is difficult to close the command window after.

I suppose with AHK is more easy.

I would like a script to solve this situation.

Best Regards
 :-*

P.D. I need all this because I have an interaction problem with Ditto and other scripts. Sometimes occurr. And is impossible for me to be without Ditto.
Reopening solves the problem.

I don't need a resident script.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #1 on: June 22, 2012, 03:26 PM »
Put an 'exit' as a last line in the .bat file...

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #2 on: June 22, 2012, 04:02 PM »
I have tried that with my goldmine , but the black window remain until I am out of Goldmine.

@echo off
taskkill.exe /im gmw5.exe /f
Y:\GoldminePrg\gmw5.exe /i:esm /u:JOSE /p: /m:Y:\GoldminePrg\Macros\pep0.849
exit

 :(

With AHK must be easier. Please the code.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #3 on: June 22, 2012, 04:11 PM »
Put the command 'start' in front of the goldmine command, and a space after it. It'll start as goldmine a separate 'thread' and the batchfile will exit.

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #4 on: June 22, 2012, 04:14 PM »
If you just start something from an batch, the batch is waiting for the end of that program.
So take a look at the 'Start' command.  (C:\>start /?)

@echo off
taskkill.exe /im gmw5.exe /f
START Y:\GoldminePrg\gmw5.exe /i:esm /u:JOSE /p: /m:Y:\GoldminePrg\Macros\pep0.849

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #5 on: June 22, 2012, 04:19 PM »
Runninggggggggggggggggggggggggggggg
 ;D

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #6 on: June 22, 2012, 04:46 PM »
Thanks a lot. Really.
I was using many bat with the black window (ms-dos command window) without knowing how to put off.
Now is wonderful.
The scripts are now fast, effective and clean.

Best Regards

http://img441.imageshack.us/img441/8487/cerrado.gif
SOLVED: ReOpenDitto

 
http://img101.imageshack.us/img101/7251/besotene2.gif
SOLVED: ReOpenDitto
http://img101.imageshack.us/img101/7251/besotene2.gif
SOLVED: ReOpenDitto
http://img101.imageshack.us/img101/7251/besotene2.gif
SOLVED: ReOpenDitto
http://img101.imageshack.us/img101/7251/besotene2.gif
SOLVED: ReOpenDitto
http://img101.imageshack.us/img101/7251/besotene2.gif
SOLVED: ReOpenDitto
http://img101.imageshack.us/img101/7251/besotene2.gif
SOLVED: ReOpenDitto
http://img101.imageshack.us/img101/7251/besotene2.gif
SOLVED: ReOpenDitto
http://img101.imageshack.us/img101/7251/besotene2.gif
SOLVED: ReOpenDitto