delays in net send in .bat

R

roisin

In a previous post I was advised (thanks for that Mark Schupp) to
execute net send commands from a .bat file rather than an ASP page -
so I have written a a script in my web page that will dynamically
create a .bat according to the options a user chooses (basically
picking from a list of users to whom they want to send a message).
However, if they pick everyone and a couple of those users are logged
off, the script delays for up to a minute trying to find these users -
therefore if there were say 10 people logged off the script would take
ages to execute - not good

Can anyone tell me how to either
1. get a list of all logged on users - so that there will be no cause
for delay or
2. write something that limits the delay to a number of seconds - some
sort of timeout (per line, not per entire script)

would really appreciate it
TIA

grif
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top