mark_h
28th May 2009, 19:35
I am able to successfully launch a url from inside baan. I guess it runs an applet or something to launch a file(pdf drawings). It works, but then internet explorer then gives this message. I removed the URL from the screenshot, but everything works. The question I have is there a way to either kill the internet explorer after the drawing is launched or prevent this message from appearing? Any idea's are appreciated. I tried taskkill, but it would kill all of my internet explorer processes.

sushil
28th May 2009, 21:16
Hi,

Alternatives.

Try making Different browser as default browser - and then when it launches kill it using taskkill or process kill option from sysinternals.

or

Reroute the url (you have defined ) to another page.
i.e.

Eg . type tracert www.google.com in cmd
then note the Ip of it

1.goto %windir%\system32\drivers\etc
2.open hosts file.
3.type the ip you have noted give some space(press tab) and then paste the url you have defined.

i hope this helps.

mark_h
28th May 2009, 22:08
Both are good suggestions - the problem with the first is that this option will be used by purchasing agents at multiple sites and I can not create an alternate executable. I think that would work, but I know desktop control would not let me do it because of security controls.

Well - the url is so long it will not run in the command level. We actually tried a few things with that. Like using cmd with close after executing.

These suggestions did make me wonder if the person or wrote this servelet or applet could make some changes to get clear the error or close ie.

Thanks for the help and maybe someone else will have a different suggestion.

george7a
29th May 2009, 12:05
Hi Mark,

As I understood you need to kill the IE after some time, right? Is there a specific number of seconds?

If yes, I can gladly write you some VB code that will open the link for lets say30 seconds and then kill the IE (the same instance that I opened).

Let me know if this will help,

- George

mark_h
29th May 2009, 16:58
Thanks George and I appreciate it. The problem will be getting the code to all the users. As it stands we have not demo'ed the new program to them and will have to see what they think. I am also trying to see what the person who wrote this applet or servelet(whatever the heck it is) can do from their end. I was hoping there was a windows command or something in baan that I could control.

Appreciate the answers.

george7a
29th May 2009, 20:16
You can copy this exe to a shared directory or copy it to every client using server2client(). Let me know if it helps. I can give you the compiled code, or the code it self so you can compile it.

I have search a bit for a way to do it via batch file but could not find anything. I will keep you posted if I find anything.

sushil
29th May 2009, 20:22
Hi,

Nowadays all the Antivirus are capable of Webfiltering or End point sec.
eg :

1.Norton Internet security
2.Mcafee total protection
3.NOD32
4.Avast.

So you could block the url centrally in Antivirus Server Domain - so it will pass on to all installed clients .

Hence avoiding the URL to work or show the message.

note: this depends on type of AV installed at your place.

sushil
29th May 2009, 20:28
As suggested by Mr.george(Super mod) you could make central deployment of batch files from Windows Active directory.

i.e you can define in startup profile in Domain GPO - who ever login in Windows the batch file will get deployed in desired location say %windir%\system.

You could try the same thing for hosts file deployment (URL rerouting) to all Clients.

george7a
1st June 2009, 17:00
Mark,

You can use the "tasklist (http://technet.microsoft.com/en-us/library/bb491010.aspx)" Dos command. From it you can get the list of processes that are currently running on the client. You can check whether iexplore.exe is running or not, if it is, save its PID. Then execute your iexplore.exe, wait as much as you need, and kill the new iexplore.exe (by checking the tasklist again...).

I hope this helps,

- George