Computing.Net > Forums > Disk Operating System > Error Trap

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

Reply to Message Icon

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.

Thanks.

Mark Davies

itsmarkdavies@hotmail.com



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Batch files( get cdrom le... 210MBs pocket CD-R



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Error Trap

Problem creating a batc h file... www.computing.net/answers/dos/problem-creating-a-batc-h-file/14858.html

xcopy errorlevels??? www.computing.net/answers/dos/xcopy-errorlevels/7510.html

Error Code trying to run a DOS program www.computing.net/answers/dos/error-code-trying-to-run-a-dos-program/3769.html