Page 1 of 1 1
Topic Options
#33545 - 2002-11-26 02:14 PM Need Help With This One!!
mhannan13 Offline
Lurker

Registered: 2002-11-26
Posts: 4
Loc: England
I have put together a script that connects the users correct group and private drives at login, If any drives are missing, the script then runs a visual notification on the screen telling them that '******' is not connected. What i would like to do is be able to send this visual notification to a Dir. for storage.

Any help or advice would be greatly appreciated.

Top
#33546 - 2002-11-26 02:16 PM Re: Need Help With This One!!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
visual to a dir?
could you explain little what you are trying.

as, what I see from your text, you want to catch that visual message, do a screen print and save that image in somewhere?
_________________________
!

download KiXnet

Top
#33547 - 2002-11-26 02:18 PM Re: Need Help With This One!!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, and if dir. = director, you can do that with sendmessage()
_________________________
!

download KiXnet

Top
#33548 - 2002-11-26 02:20 PM Re: Need Help With This One!!
mhannan13 Offline
Lurker

Registered: 2002-11-26
Posts: 4
Loc: England
The visual is basically a popup window. You are totally on the right lines, what i would like to do is gather that info in the popup and then export it in notepad etc. into a remote directory or file.
Top
#33549 - 2002-11-26 02:21 PM Re: Need Help With This One!!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, next question, is this kix window?
meaning, is it messagebox() ?

or some third party util or other scripting language?
_________________________
!

download KiXnet

Top
#33550 - 2002-11-26 02:22 PM Re: Need Help With This One!!
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
mhannan13,

Is this when the user is fully logged in and you run a NET USE and you see a disconnected resource?

BTW, Welcome to the board!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33551 - 2002-11-26 02:29 PM Re: Need Help With This One!!
mhannan13 Offline
Lurker

Registered: 2002-11-26
Posts: 4
Loc: England
yes, it is a messagebox( ).
Top
#33552 - 2002-11-26 02:33 PM Re: Need Help With This One!!
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
OK..

The construct would be as follows:

NET USE > TEST.TXT

Then do a READLINE on it and if found with any Disconnected Resources display a messagebox.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33553 - 2002-11-26 02:40 PM Re: Need Help With This One!!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
kent, I wonder...

if he already has the error somewhere (most likely in var) as he is putting it on the screen with messagebox.

he can do the same with writeline or echo:

shell "%comspec% /c echo $errorinwhat $whatwaserror >> $errorlog_somewhere"

the net use can achieve the same, but if there is error, doesn't it take more time to query it again?
_________________________
!

download KiXnet

Top
#33554 - 2002-11-26 02:42 PM Re: Need Help With This One!!
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
it would be useful to see some code instead of speculating in the wilderness?
_________________________
We all live in a Yellow Subroutine...

Top
#33555 - 2002-11-26 02:45 PM Re: Need Help With This One!!
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I think we are in the phase of trying to see what he is trying to achieve.

If he does it as a messagebox, it could prompt a call to a Support Desk to put out any fires.

However, what we have done is use an SMTP mailer like POSTIE or BLAT to e-mail our group and we take care of the issue on the "back side."

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33556 - 2002-11-26 02:50 PM Re: Need Help With This One!!
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
mhannan13,

I think we may have something for you -

Looking at the FAQ

We find..
File Operations

Look under:
4. Test for Drive existence with notification

I think this maybe better from an end-user perspective where they do not have to dismiss a dialog box (messagebox).

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33557 - 2002-11-26 04:03 PM Re: Need Help With This One!!
mhannan13 Offline
Lurker

Registered: 2002-11-26
Posts: 4
Loc: England
Please email me if you would like to see the script.

Thanks for all the advice so far.

regards

mark

Top
#33558 - 2002-11-26 04:05 PM Re: Need Help With This One!!
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
You might also want ot check out the DisplayText(), Err(), Warning(), and WriteLog() UDFs. All of them can be used for extensive logging purposes..
code:
use x: \\server\share
$rc=Err('Error connecting drive')

would for example write into an error log on a central server.
_________________________
There are two types of vessels, submarines and targets.

Top
#33559 - 2002-11-26 04:05 PM Re: Need Help With This One!!
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Is this detection piece really that big?

If you have company-sensitive information, you can change it for posting.

We cannot work on telepathy here. [Smile]

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33560 - 2002-11-26 04:11 PM Re: Need Help With This One!!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
got mailed.
made a reply, will see.

there is nothing actually, simple log-file stuff is just perfect.
_________________________
!

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
0 registered and 329 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.067 seconds in which 0.026 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