Create a EG-event with a batchfile

If you have a question or need help, this is the place to be.
Post Reply
User avatar
GBWebmaster
Experienced User
Posts: 114
Joined: Wed Sep 24, 2008 5:34 am
Contact:

Create a EG-event with a batchfile

Post by GBWebmaster » Fri May 19, 2017 8:13 pm

Hello,

is it possible to create a EG-event with a batchfile?

I have try it with the following code, but nothing happens ... :(

Code: Select all

"C:\Program Files\EventGhost\EventGhost.exe" -e Task.Start.VPN

GBWebmaster
Für den, der nie das Rudel anführt,
wird sich die Aussicht nicht ändern.

User avatar
kgschlosser
Site Admin
Posts: 3030
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Create a EG-event with a batchfile

Post by kgschlosser » Fri May 19, 2017 8:30 pm

what operating system are you using?

because if it's anything newer then windows XP that batch file command is not going to work


Now this one will

Code: Select all

"C:\Program Files (x86)\EventGhost\EventGhost.exe" -e Task.Start.VPN
If you like the work I have been doing then feel free to Image

User avatar
GBWebmaster
Experienced User
Posts: 114
Joined: Wed Sep 24, 2008 5:34 am
Contact:

Re: Create a EG-event with a batchfile

Post by GBWebmaster » Fri May 19, 2017 10:37 pm

Hello kgschlosser,

your command doesn't work, because the operating system is Windows7 (x86).
It's not a x64-system ...
Für den, der nie das Rudel anführt,
wird sich die Aussicht nicht ändern.

User avatar
kgschlosser
Site Admin
Posts: 3030
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Create a EG-event with a batchfile

Post by kgschlosser » Fri May 19, 2017 11:00 pm

Ha! I forgot about vista and 7 being 32 bit also.

When you key that same command from the command prompt does it trigger an event?
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 3030
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Create a EG-event with a batchfile

Post by kgschlosser » Fri May 19, 2017 11:04 pm

You could also try changing the working directory and just key in the executable.

Code: Select all

cd "C:\Program Files\EventGhost"
eventghost -event Some.Event
Not sure why that would make a difference. But it may.
If you like the work I have been doing then feel free to Image

User avatar
GBWebmaster
Experienced User
Posts: 114
Joined: Wed Sep 24, 2008 5:34 am
Contact:

Re: Create a EG-event with a batchfile

Post by GBWebmaster » Sat May 20, 2017 7:14 pm

I found out, that my first posted code works - but only with highest privilegs (my EG also works with highest privilegs...).
Für den, der nie das Rudel anführt,
wird sich die Aussicht nicht ändern.

Post Reply