home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4889 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.tau.ac.il!usenet
  2. From: Avi Lev <avil@sapiens.com>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Losing Path in new shell
  5. Date: Wed, 06 Mar 1996 10:20:59 +0200
  6. Organization: Sapiens Technologies
  7. Message-ID: <313D4AEB.6DD5@sapiens.com>
  8. References: <4h1lbn$86o@news.cs.tu-berlin.de>
  9. NNTP-Posting-Host: honda.sapiens.co.il
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Adrian Halamoda wrote:
  16. > Hello,
  17. > I have a strange problem with NewShell/NewCLI command.
  18. > When I run it from my program with System() (asynchronously),
  19. > it opens own window, but resets Path to defaults (only C: and current
  20. > directory). How can I open new shell that has the same Path as shell
  21. > called from WB ? Any hints what's wrong with my code ?
  22. > Thanks in advance,
  23.  
  24. your code is fine, it's just not complete that all! you need to 
  25. send the newshell process "cd <directory path>" command 
  26. afterwards, you can do this by making sure the newshell window 
  27. has the input focus and faking keyboard input using the 
  28. input.device to send character messages comprising the command 
  29. one by one into the event chain and don't forget to send <enter> 
  30. at the end, the rest will be done automatically. i used this 
  31. method once and it worked fine i just don't really remember all 
  32. the details...good luck.
  33.