D
D
Dmitry Karassev2013-11-26 09:56:46
Eclipse
Dmitry Karassev, 2013-11-26 09:56:46

Auto-close software on idle time?

We have Windows 7x64, Eclipse, BittorentSync and a hard working programmer.
The task is to have synchronization of the Eclipse IDE working project at home and in the office. Synchronization is done by BittorentSync (it has already proven its advantage over DropBox for me).
The scheme is something like this - I go to work in the morning (about 30-40 minutes), at which time the home computer is idle anyway. Working. I go home (again about 30-40 minutes).
When the PC is idle for 10 minutes for example, I want the IDE to automatically close for sync capabilities (I'm distracted, I might forget to close the development environment -> there will be no successful sync, because the files being modified will be open on two PCs and they will not be able to overwrite).
What is the problem? The fact that the scheduler can do anything, but not close the software (I did not find how to do this) - this is where I ask for help.
PS We successfully use Git at work, we have Dropbox... it's all too redundant - the usual copying via the torrent protocol is enough for me.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
Opaspap, 2013-11-26
@Skerrigan

The smart guys ( here ) say to run eclipse with the console parameter
like this:
create eclipseoff.vbs:

set my = WScript.CreateObject("WScript.Shell")
my.run("c:\windows\system32\telnet.exe")
WScript.Sleep 100
my.SendKeys("o 127.0.0.1 9000~")
WScript.Sleep 100
my.SendKeys("shutdown~")
WScript.Sleep 100
my.SendKeys("pass test~")
WScript.Sleep 100

and then we launch according to your scheduler ...

P
plasticmirror, 2013-11-26
@plasticmirror

taskkill as an illustration "there is no reception against scrap" does not suit you?

A
Alexey, 2013-11-26
@ScorpLeX

You can write a script at http://www.autoitscript.com/site/autoit/ for example, it can do almost everything and the development speed is very high.

B
Beholder, 2013-11-29
@Beholder

Git would be the most correct solution. Not at all redundant.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question