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

  1. Path: sparky!uunet!think.com!spool.mu.edu!uwm.edu!src.honeywell.com!tcscs!zeta
  2. From: tcscs!zeta@src.honeywell.com (Gregory Youngblood)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Help on changing Copy
  5. Keywords: Midnight Arrow
  6. Message-ID: <D3eouB3w165w@tcscs.UUCP>
  7. Date: Mon, 23 Nov 92 00:14:12 CST
  8. References: <98765@netnews.upenn.edu>
  9. Reply-To: zeta%tcscs@src.honeywell.com
  10. Organization: TCS Consulting Services
  11. Lines: 42
  12.  
  13. sabre@microsupport.sas.upenn.edu (Andrew White) writes:
  14.  
  15. > In article <v3gq0yl@lynx.unm.edu> moeur@chtm.eece.unm.edu (Bill Moeur) writes
  16. > >In article <Bxn4nE.8IH@news.cso.uiuc.edu> jlamb@ux4.cso.uiuc.edu (Jeffrey Ri
  17. > >
  18. > >>to kill machines. I'm not trying to write a virus. I made a bet with
  19. > >>a friend that the copy command (or any other internal dos command)
  20. > >>could be "turned off." What I want to do is simple. I want dos to access
  21. > >>a file called "copy.bat" whenever anyone types in a copy command. The
  22. > >>problem is that dos always checks for internal commands (copy) first,
  23. > >>so dos never even looks at copy.bat, it just declares invalid number of
  24. > >>parameters. I'm sure this can be avoided, but how? Again, I know it sounds
  25. > >
  26. > >If you're using DOS 5.0, try using doskey to alias the copy command to call
  27. > >your batch file which is called something beside copy.bat.
  28. > >for example:
  29. > >     DOSKEY copy=copy2 $1 $2
  30. > My freshman year, we did something like this to a friend's computer
  31. > by using DEBUG to change the name the DIR command in COMMAND.COM to
  32. > DXR (or whatever), and then creating a hidden batch file in the
  33. > path called "DIR.BAT" that contained one line:
  34. >  
  35. > @DIR C:\
  36. > so that whenever he did a DIR, he only saw the contents of the root
  37. > directory.  It was quite funny.  Anyway, you could change the COPY
  38. > command in a similar manner, albeit this is not a general solution
  39. > to the problem.
  40.  
  41. I did something similar a while back using Norton's Disk Editor and modifying
  42. CD (in command.com) to ZZ and then used a program called Led's Change Directory
  43. (LCD) (renamed to CD on my system).  This way whne I typed CD I had the 
  44. 'smart' change directory program try to match the closest directory to what
  45. I typed.  It was quite useful.
  46.  
  47. Greg
  48.  
  49. .-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.
  50. .   TCS Consulting Services   P.O. Box 600008   St. Paul, MN  55106-0008    .
  51. .   ..!srcsip!tcscs!zeta                 ..!src.honeywell.com!tcscs!zeta    .
  52. .-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.
  53.