home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / protocol / nfs / 2699 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  1.7 KB

  1. 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
  2. From: geoff@tyger.Eng.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top)
  3. Newsgroups: comp.protocols.nfs
  4. Subject: Re: Capturing NET.EXE output (bis)
  5. Date: 5 Nov 1992 13:42:58 GMT
  6. Organization: SunSelect
  7. Lines: 40
  8. Message-ID: <1db8d2INN4ag@seven-up.East.Sun.COM>
  9. References: <1992Nov4.181011.4442@sunbim.be>
  10. NNTP-Posting-Host: tyger.east.sun.com
  11.  
  12. Quoth fr@eagle.mumath (in <1992Nov4.181011.4442@sunbim.be>):
  13. #Apologies, 
  14. #
  15. #I did not make myself clear in my previous mail.
  16. #
  17. #The problem is more clear with the "capture" I took from a DOS box...
  18. #
  19. #
  20. #---------------------------------------------------------------------
  21. #C:\TMP>net use g: eagle:/home > RESULT
  22. #C:\TMP>type RESULT
  23. #C:\TMP>
  24. #C:\TMP>net use H: eagle:/hoe > RESULT
  25. #NFS040F : The specified file system is not local to server eagle.
  26. #C:\TMP>type RESULT
  27. #C:\TMP>
  28. #---------------------------------------------------------------------
  29. #
  30. #`stderr' is always sent to the 'console'. Is there a way to redirect it (without
  31. #having to move from DOS to an high-level OS :-) ?
  32.  
  33. In PC-NFS 4.0 and later, the (?undocumented) NET.EXE switch "-q"
  34. makes NET "quiet". The following batch file works fine for me:
  35.  
  36.     REM Mount argument on drive h:, and display result
  37.     net -q use h: %1
  38.     if errorlevel 1 goto failure
  39.     echo the NET USE succeeded
  40.     goto morestuff
  41.     :failure
  42.     echo the NET USE failed
  43.     :morestuff
  44.     ...
  45.  
  46. Geoff
  47. --
  48. Geoff Arnold, PC-NFS architect, Sun Select. (geoff.arnold@East.Sun.COM)
  49. -----------
  50. News software that enforces a four-line .signature limit is responsible for
  51. the fact that these postings just go on and on and on and seem to end in mid-
  52.