Echo off on Net Use commands?

When you run a Net Use command you get the drive map succesful, or if I use the net use /d you get the drive map succesfully, I just want to be able to run the command and not get any message. Just do it and not say succesfull. Is there an option? I tried using

@Net use ....

but no luck
LVL 2
fredmastroAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LermitteCommented:
Set it in a batchfile with the
Echo Off command in it..

Mario
0
Tim HolmanCommented:
@echo off
net use z: \\servername\share >nul
0
Tim HolmanCommented:
@echo off
net use z: \\servername\share >nul
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

fredmastroAuthor Commented:
@net use is the same as Echo Off, which I did, but Tim holman's comments works!
0
fredmastroAuthor Commented:
whoops, I didn't mean to reject the answer I thought Lermitte's comment was the answer. Thanks for the info.
0
LermitteCommented:
Next time I will set the batchfile in it.. so then no one other can take the answer..

Mario
0
Tim HolmanCommented:
Mario - it's the >nul bit that stops the 'The command has completed successfully.' message, which is what fredmastro was after.
Simply 'echo off' won't turn off this message, it will just stop the text 'net use blah blah blah' appearing on the screen and leave the 'command has completed..' msg up there.
Sorry for any confusion - I promise I'm not point stealing !
0
LermitteCommented:
I got the same batchfile in my mind so I forgive you. That's why I say that the next time I will set the batchfile with it. But It's not for the points I do it, but for the fun :-) and for helping and try to solve problems..

Greetings,

Mario
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.