Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Error Trap
Name: MARK DAVIES Date: April 22, 2002 at 09:11:48 Pacific
Comment:
I am running the following Batch File from VB to create an NT User on our PDC NT Server :-
ECHO %1 ECHO %2 ECHO %3 net user %1 %2 /add /domain /active:yes /comment:"Marks test account" /fullname:%3 /passwordchg:no /passwordreq:yes /usercomment:"this is a test" PAUSE
What I would like to be able to do is trap the error that occurs if the User already exists, and return the error (or some kind of message) to my Visual Basic App. Any ideas appreciated.
Summary: Yeah - I don't do that much batching these days, not like when I'd first started out with computers. I only recently found that site myself, it may be a bit much if you're just starting out, but it se...
Summary: XCOPY returns 0 even if the date comparison fails. However, FIND returns errorlevel 0 only if there's a match. I have used the following batch file code with success: ===============================...
Summary: I have a primary FAT16 partition on my Pentium with Win98 as C:\. The DOS partition is E:\ When I try to run a program I get an error message run time error R6003 integer divide by 0 Any help definin...