Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • September 04, 2015, 01:52:35 PM
  • Proudly celebrating 10 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 2387 times)

Contro

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 2,457
    • View Profile
    • Donate to Member
SOLVED: ReOpenDitto
« on: June 22, 2012, 03:12:27 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: 2,539
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #1 on: June 22, 2012, 03:26:59 PM »
Put an 'exit' as a last line in the .bat file...

Contro

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 2,457
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #2 on: June 22, 2012, 04:02:42 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: 2,539
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #3 on: June 22, 2012, 04:11:44 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,086
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #4 on: June 22, 2012, 04:14:42 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

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 2,457
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #5 on: June 22, 2012, 04:19:49 PM »
Runninggggggggggggggggggggggggggggg
 ;D

Contro

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 2,457
    • View Profile
    • Donate to Member
Re: SOLVED: ReOpenDitto
« Reply #6 on: June 22, 2012, 04:46:12 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