Page 4 of 4 <1234
Topic Options
#137910 - 2005-04-21 07:04 PM Re: Need help with EnumProcess
Broxoth Offline
Getting the hang of it

Registered: 2005-04-07
Posts: 78
The only problem is that what I need to be able to do here is allow the user to enter any computer name in $UI_COMPNAMES and then move them to $UI_COMPLIST to be used in the same old script. I also need them to be able to choose from any of the processes or all of them. Here's link to explain what I'm working on.
Just as a side question, on a scale of 1 to 10, how complicated do you think this script will have to be?

Top
#137911 - 2005-04-21 07:37 PM Re: Need help with EnumProcess
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
What do you want to do with the process or with the computer if you do find it running a given process?
Top
#137912 - 2005-04-21 07:46 PM Re: Need help with EnumProcess
Broxoth Offline
Getting the hang of it

Registered: 2005-04-07
Posts: 78
Here's the end goals that I've been given: The option to Kill process, Send message to computer running process to close the program, or just inform @wksta which procs are running where.
Sorry, am I not being clear enough?

Top
#137913 - 2005-04-21 09:14 PM Re: Need help with EnumProcess
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Okay that should be enough information.

If you don't get it figured out, or if no one else steps in, I'll try to take a look at it within the next couple of days and see if I can help you get it completed.

Top
#137914 - 2005-04-21 09:56 PM Re: Need help with EnumProcess
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Me want to help too, me want to help to.

Just have a question though - not really understanding the requirement to be able to type-in server names (multiple names) into a multiline textbox, then move the individually selected ones into a listbox. Not really following the "why" of this. Wouldn't you want to user to just simply type in a hostname, then move it into the listbox - and if they didn't want it in the listbox, they wouldn't type it anyways ?

-Shawn

Top
#137915 - 2005-04-21 10:01 PM Re: Need help with EnumProcess
Broxoth Offline
Getting the hang of it

Registered: 2005-04-07
Posts: 78
Thanks! I'll post what I have so far by tomorrow morning.
Top
#137916 - 2005-04-22 04:52 PM Re: Need help with EnumProcess
Broxoth Offline
Getting the hang of it

Registered: 2005-04-07
Posts: 78
Shawn, you make a good point. I can see how that would be....stupid. I guess what I'm thinking is coming up with a way that once a user entered a computer name then that can be saved somehow (.ini file?) for future use. But something just struck me. I'll just have a "Search for computers" button. That'll be easier than having someone type a computer name in. Granted, I won't have it search the entire subnet for computers running these procs. I'll just have it list available computers. Since this is an admin thing anyway, odds are that whoever uses this will know which computers might be running these processes. Whadd'ya think?
Top
#137917 - 2005-04-22 05:51 PM Re: Need help with EnumProcess
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
How many computers you talking about?
Are they all well connected?
Are they all in one site or OU?

You could query ADODB with the LDAP path and then simply check all of them for the running process and return them in the list. I do queries like that all the time.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#137918 - 2005-04-22 07:35 PM Re: Need help with EnumProcess
Broxoth Offline
Getting the hang of it

Registered: 2005-04-07
Posts: 78
Well, I would like to leave this open-ended when it comes to amount of computers but I'll limit it in regards to either a subnet or a single domain. (A domain would probably suffice in most circumstances.)
Top
#137919 - 2005-04-22 08:11 PM Re: Need help with EnumProcess
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
do a search for McAfeeManager2 or Remote Execution Manager

find my code and pick it apart :-)
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#137920 - 2005-04-23 01:35 AM Re: Need help with EnumProcess
Broxoth Offline
Getting the hang of it

Registered: 2005-04-07
Posts: 78
Radimus: I'm looking through it now...

On a side note, if in the future, once I'm the demi-KiX-god-gurus that y'all are, what, if any, are the restrictions to selling KiX code to a company? Do you guys know? [That's way off topic and I shall take the ensuing flogging for such an action. ]

Top
#137921 - 2005-04-23 02:00 AM Re: Need help with EnumProcess
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Well one would more so be selling their services not the actual code which would be difficult at best to copyright.

If you sold someone a solution for $5,000 or $10,000 and it included KiXtart coding, well to me you're selling your knowledge of putting that code together to complete the task, not the actual code.

Top
#137922 - 2005-04-23 02:20 AM Re: Need help with EnumProcess
Broxoth Offline
Getting the hang of it

Registered: 2005-04-07
Posts: 78
Yeah, that's what I kept running into about the whole selling the code thing. How can you say that no one else could use already commonly used code?
But as a solution to a problem, as in like a new module to an already existing software, I would see that as a feasible thing. I just wanted to make sure there were no GNU-ish restrictions. I'm obviously a very long way from being able to do something remotely like that. Just thought I'd ask...thanks. Back to the task at hand...

Top
#137923 - 2005-04-25 05:17 PM Re: Need help with EnumProcess
Broxoth Offline
Getting the hang of it

Registered: 2005-04-07
Posts: 78
OK, I think I'm making some progress towards my goals but I'm stuck again...how would you query for computer names if the network in question does not have a LDAP server or AD?
Top
#137924 - 2005-04-25 08:02 PM Re: Need help with EnumProcess
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
From a DOS console

NET VIEW >SYSTEMS.TXT

Then place the correct syntax into KiX code to do similar.

Top
#137925 - 2005-04-25 08:29 PM Re: Need help with EnumProcess
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
or use one of the UDFs
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#137926 - 2005-04-25 08:44 PM Re: Need help with EnumProcess
Broxoth Offline
Getting the hang of it

Registered: 2005-04-07
Posts: 78
Duh! Thanks. So based on that I could have it do a query where it checks to see if a LDAP server is available and if one is not available it can search using the other NET VIEW/UDF method? Did that question make sense?
Top
#137927 - 2005-04-25 08:59 PM Re: Need help with EnumProcess
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Yes you can do either or both methods if required.
Top
#137928 - 2005-04-27 08:05 PM Re: Need help with EnumProcess
Broxoth Offline
Getting the hang of it

Registered: 2005-04-07
Posts: 78
Ok, after a couple of days of playing with this I'm about halfway there. I'm using the NetView2 UDF but I can't figure out how I get the results to display in my ListBox so users can choose which computer(s) they want to search for the running processes. I searched the board and came up with no hints on how to do this. If you know of a previous post that would point me in the right direction please let me know.
Top
Page 4 of 4 <1234


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (mole) and 405 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.078 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org