Click here to Skip to main content
15,915,513 members
Home / Discussions / Web Development
   

Web Development

 
GeneralDisable a script... Pin
Brad Fackrell4-Jun-04 2:37
Brad Fackrell4-Jun-04 2:37 
GeneralRe: Disable a script... Pin
Jason McBurney4-Jun-04 9:01
Jason McBurney4-Jun-04 9:01 
GeneralRe: Disable a script... Pin
Brad Fackrell4-Jun-04 9:07
Brad Fackrell4-Jun-04 9:07 
QuestionHow to open a select folder window? Pin
jessica1233-Jun-04 21:55
jessica1233-Jun-04 21:55 
AnswerRe: How to open a select folder window? Pin
sivilian4-Jun-04 7:12
sivilian4-Jun-04 7:12 
GeneralFile -> new window can't call activex members Pin
skoizumi291103-Jun-04 7:02
sussskoizumi291103-Jun-04 7:02 
GeneralEnumerating Group Members with WMI, VBscript Pin
thespiff3-Jun-04 6:00
thespiff3-Jun-04 6:00 
GeneralRe: Enumerating Group Members with WMI, VBscript Pin
thespiff4-Jun-04 1:29
thespiff4-Jun-04 1:29 
Allright, well I've made some progress here. I have a script that runs almost perfectly, but has a habit of getting stuck. Here's the essential code:
Set fso = CreateObject("Scripting.FileSystemObject")<br />
Set scribe = fso.CreateTextFile("c:\LocalAdminList.txt")<br />
Set boxes = fso.OpenTextFile("c:\servers.txt",1,false)<br />
<br />
DO<br />
Set CompConn = GetObject("winmgmts:\\" & box & "\root\cimv2")<br />
Set ColUsers = CompConn.ExecQuery("SELECT * FROM Win32_GroupUser WHERE" &_ "GroupComponent='Win32_Group.Domain=\'BUILTIN\',Name=\'Administrators\'' ")<br />
<br />
    FOR EACH User IN ColUsers<br />
        Username = User.PartComponent<br />
	scribe.writeline Username<br />
        (*script gets stuck here*)<br />
    NEXT<br />
<br />
LOOP WHILE(boxes.atendofstream = false)<br />


Simple enough. Yet when I run the script against a list of a few hundred servers it gets stuck somewhere between the second and third server. Specifically, it never gets out of the FOR loop after it processes the last user in the second server's collection. When I remove this server from the list the script makes it through 5 more servers and then same deal. No errors, it just sits and doesn't do anything. Does anybody have any idea why this script won't drop out of the FOR loop when it ought to? Alternatively, is there any code to make it drop out after a certain period of innactiviy?
GeneralRe: Enumerating Group Members with WMI, VBscript Pin
thespiff4-Jun-04 4:36
thespiff4-Jun-04 4:36 
GeneralPerl vs. PHP Pin
brianwelsch3-Jun-04 5:01
brianwelsch3-Jun-04 5:01 
GeneralRe: Perl vs. PHP Pin
l a u r e n3-Jun-04 7:18
l a u r e n3-Jun-04 7:18 
GeneralRe: Perl vs. PHP Pin
brianwelsch3-Jun-04 8:04
brianwelsch3-Jun-04 8:04 
GeneralFixed cell width in tables Pin
JussiL3-Jun-04 1:09
JussiL3-Jun-04 1:09 
GeneralRe: Fixed cell width in tables Pin
Andrew Quinn AUS3-Jun-04 4:05
Andrew Quinn AUS3-Jun-04 4:05 
GeneralRe: Fixed cell width in tables Pin
JussiL3-Jun-04 20:32
JussiL3-Jun-04 20:32 
Generalfax from asp Pin
hi_hemant142-Jun-04 19:47
hi_hemant142-Jun-04 19:47 
GeneralRe: fax from asp Pin
l a u r e n3-Jun-04 7:22
l a u r e n3-Jun-04 7:22 
Generalembedded media player... Pin
l a u r e n2-Jun-04 15:58
l a u r e n2-Jun-04 15:58 
GeneralRe: embedded media player... Pin
palbano4-Jun-04 9:03
palbano4-Jun-04 9:03 
GeneralSSL Pin
alex.barylski2-Jun-04 10:47
alex.barylski2-Jun-04 10:47 
GeneralRe: SSL Pin
palbano4-Jun-04 9:23
palbano4-Jun-04 9:23 
GeneralRe: SSL Pin
alex.barylski5-Jun-04 12:00
alex.barylski5-Jun-04 12:00 
GeneralRe: SSL Pin
palbano5-Jun-04 17:04
palbano5-Jun-04 17:04 
GeneralUndefined Index Error in PHP &amp; MYSQL Pin
BSRK2-Jun-04 3:31
BSRK2-Jun-04 3:31 
GeneralRe: Undefined Index Error in PHP &amp; MYSQL Pin
l a u r e n2-Jun-04 16:00
l a u r e n2-Jun-04 16:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.