DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: SOLVED: ReOpenDitto  (Read 8,040 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
SOLVED: ReOpenDitto
« on: June 22, 2012, 08: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,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: SOLVED: ReOpenDitto
« Reply #1 on: June 22, 2012, 08:26 PM »
Put an 'exit' as a last line in the .bat file...
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: SOLVED: ReOpenDitto
« Reply #2 on: June 22, 2012, 09: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,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: SOLVED: ReOpenDitto
« Reply #3 on: June 22, 2012, 09: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.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
Re: SOLVED: ReOpenDitto
« Reply #4 on: June 22, 2012, 09: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
Greetings, Stefan.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: SOLVED: ReOpenDitto
« Reply #5 on: June 22, 2012, 09:19 PM »
Runninggggggggggggggggggggggggggggg
;D

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: SOLVED: ReOpenDitto
« Reply #6 on: June 22, 2012, 09: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





 

Original address: https://www.donationcoder.com/forum/index.php?topic=31404.0