home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!uwm.edu!rpi!usc!sdd.hp.com!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!tyger.Eng.Sun.COM!geoff
- From: geoff@tyger.Eng.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top)
- Newsgroups: comp.protocols.nfs
- Subject: Re: Capturing NET.EXE output (bis)
- Date: 5 Nov 1992 13:42:58 GMT
- Organization: SunSelect
- Lines: 40
- Message-ID: <1db8d2INN4ag@seven-up.East.Sun.COM>
- References: <1992Nov4.181011.4442@sunbim.be>
- NNTP-Posting-Host: tyger.east.sun.com
-
- Quoth fr@eagle.mumath (in <1992Nov4.181011.4442@sunbim.be>):
- #Apologies,
- #
- #I did not make myself clear in my previous mail.
- #
- #The problem is more clear with the "capture" I took from a DOS box...
- #
- #
- #---------------------------------------------------------------------
- #C:\TMP>net use g: eagle:/home > RESULT
- #C:\TMP>type RESULT
- #C:\TMP>
- #C:\TMP>net use H: eagle:/hoe > RESULT
- #NFS040F : The specified file system is not local to server eagle.
- #C:\TMP>type RESULT
- #C:\TMP>
- #---------------------------------------------------------------------
- #
- #`stderr' is always sent to the 'console'. Is there a way to redirect it (without
- #having to move from DOS to an high-level OS :-) ?
-
- In PC-NFS 4.0 and later, the (?undocumented) NET.EXE switch "-q"
- makes NET "quiet". The following batch file works fine for me:
-
- REM Mount argument on drive h:, and display result
- net -q use h: %1
- if errorlevel 1 goto failure
- echo the NET USE succeeded
- goto morestuff
- :failure
- echo the NET USE failed
- :morestuff
- ...
-
- Geoff
- --
- Geoff Arnold, PC-NFS architect, Sun Select. (geoff.arnold@East.Sun.COM)
- -----------
- News software that enforces a four-line .signature limit is responsible for
- the fact that these postings just go on and on and on and seem to end in mid-
-