home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10769 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  2.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!ub!csn!news.den.mmc.com!mccabe@pogo.den.mmc.com
  2. From: mccabe@pogo.den.mmc.com (Steve McCabe)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Undocumented commands for MSDOS
  5. Message-ID: <1992Nov19.144944.6624@den.mmc.com>
  6. Date: 19 Nov 92 14:49:44 GMT
  7. References: <1duhj3INNa9c@golem.wcc.govt.nz> <1992Nov17.104222.6548@goya.uu.es> <1992Nov18.040449.20732@vpnet.chi.il.us> <.116@ccs.carleton.ca>
  8. Sender: news@den.mmc.com (News)
  9. Organization: Martin Marietta Western Internal Systems
  10. Lines: 38
  11. Nntp-Posting-Host: 129.243.25.213
  12.  
  13. In article <.116@ccs.carleton.ca>, @ccs.carleton.ca writes:
  14. > In article <1992Nov18.040449.20732@vpnet.chi.il.us> cgordon@vpnet.chi.il.us (gordon hlavenka) writes:
  15. > > mtl92205@dit.upm.es (Pablo Varela) writes:
  16. > >>      I've tried truename, and what it seems to do it's giving
  17. > >>you the full name of a file, that is, if you are in c:\windows, and 
  18. > >>type truename win.com it will say c:\windows\win.com, and if you say 
  19. > >>truname ..\bin\pkunzip.exe it will say c:\bin\pkunzip.exe.
  20. > >Hmmm...  I just shelled out and tried "truename pkunzip.exe".  It
  21. > >returned "D:\TELIX\PKUNZIP.EXE" although pkunzip is actually in
  22. > >C:\UTIL.  Next I tried "truename nosuch.fil" and got
  23. > >"D:\TELIX\NOSUCH.FIL".  So I guess we can see why it's undocumented :-)
  24. > The problem here is that you have assumed that truename finds the 
  25. > fully qualified name of an actual file. There are several versions of the 
  26. > UNIX which program which will find the correct file.
  27. > Truename in this context, returns the FULLY QUALIFIED name of a file.
  28. > Basically, it lets you know the file DOS would access given the string 
  29. > provided. This does not imply that the file exists, simply what Drive:\
  30. > directory\name.ext would be used. 
  31. >  
  32. Syntax: TrueName [Drive:] [\Directory] [Name.Ext]     [] = optional
  33.  
  34. Note: It does not always return Drive:\Directory\Name. If the Drive specified is network
  35.       Drive, the return format is \\ServerName\VolumeName\Directory, but if you specified 
  36.       a Name.Ext with no Directory and the current Directory for the network drive is  
  37.       the root, then the return format is \\ServerName\VolumeName\\FileName.Ext
  38.  
  39. The DOS command CD accepts the format returned above.  Be careful though, if your current drive
  40. is a local non-networked drive and you issue a CD \\ServerName\VolumeName\Directory command,
  41. DOS will map the Networked drive to your local drive. 
  42. By the way, after issuing the above command, we are unable to get back to the local Hard-
  43. drive without re-booting!
  44.