Page 1 of 1 1
Topic Options
#31171 - 2002-10-22 11:24 AM How to record machine names to a file
funkester Offline
Fresh Scripter

Registered: 2002-10-21
Posts: 12
Hi,

I want to record the workstation name to a file when someone logs in. I also want to check the file before writing the machine name to see if the machine name already exists, if it does then do not add the name again.

I want to build a list of the desktops on my network and I want it to run like this automatically when the login script runs. I don't know how to achieve this and would be very greatful of some help.

Kind Regards, Greg.

Top
#31172 - 2002-10-22 11:29 AM Re: How to record machine names to a file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
greg,
dunno what you are doing with the info, but simpliest way to achieve this would be with WriteProfileString()
with it, you can easily keep up the info and write there every time the user logs in and there is not going to be dublicates, only updates of the same fields...

check that link... ah, and btw, the resulting file is in ini-format, so it should be easy to use and control it.

cheers.
_________________________
!

download KiXnet

Top
#31173 - 2002-10-22 03:23 PM Re: How to record machine names to a file
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See also the more extensive dissemination of WRITEPROFILESTRING() in Help with WriteProfileString
_________________________
There are two types of vessels, submarines and targets.

Top
#31174 - 2002-10-22 03:27 PM Re: How to record machine names to a file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jens, isn't that the same topic [Wink]

greg was just learning how to post reply instead of starting new topic.
right, greg? [Cool]
_________________________
!

download KiXnet

Top
#31175 - 2002-10-22 03:31 PM Re: How to record machine names to a file
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Well I posted a two step solution to the old thread if Greg is interested.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#31176 - 2002-12-07 03:39 PM Re: How to record machine names to a file
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

For other ideas see our script logon.kix on our site.
It creates historical and dynamic lists about you environment.
greetings.

btw: symbol  - on our homepage has been linked to related http://kixtart.org topic.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#31177 - 2002-12-07 03:44 PM Re: How to record machine names to a file
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
O, we find also other topics like F1-6044.
Please here current status.
Thanks, greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#31178 - 2002-12-07 04:35 PM Re: How to record machine names to a file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mca, same for you, isn't that just the same topic (...jens linked)
_________________________
!

download KiXnet

Top
#31179 - 2002-12-07 07:00 PM Re: How to record machine names to a file
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
possible, but on both threats we see discussions.
both topics has the deal with the primary question of Greg.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#31180 - 2002-12-09 12:07 AM Re: How to record machine names to a file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mca, missed my point.
your link is just the same as jens' but you have the cryptic name where jens has correct topic name.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
1 registered (StuTheCoder) and 798 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.057 seconds in which 0.023 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