Link to home
Start Free TrialLog in
Avatar of fredmastro
fredmastroFlag for United States of America

asked on

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
Avatar of Lermitte
Lermitte

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

Mario
Avatar of Tim Holman
@echo off
net use z: \\servername\share >nul
ASKER CERTIFIED SOLUTION
Avatar of Tim Holman
Tim Holman
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fredmastro

ASKER

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

Mario
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 !
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