home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / winstart.zip / README.TXT next >
Text File  |  1995-07-08  |  1KB  |  30 lines

  1. WinStart is a program I wrote to get around OS/2s annoying habit
  2. of ignoring the 'working directory' for Windows program objects.
  3.  
  4. The basic idea is to set the program object to run WinStart and pass
  5. it a parameter consisting of the following:
  6.   1)  The 'working directory'
  7.   2)  The name of the program to be run
  8.   3)  The parameter(s) to be passed to the program (optional).
  9.  
  10. For example:  If I passed a parameter of "C:\Letters  Notepad  Smith.txt",
  11. WinStart would switch to the c:\Letters directory and start Notepad, passing
  12. it the filename Smith.txt as a command-line parameter.
  13.  
  14. The way I use WinStart to launch Borland's Delphi is:
  15. The "Delphi Launcher" program object runs "c:\util\winstart.exe" and has a 
  16. parameter string of "%**P D:\DELPHI\BIN\DELPHI.EXE %**F".  This object
  17. is set up as the default association for *.DPR (Delphi project files).
  18. When I now double click a DPR file, WinStart switches to that directory,
  19. starts Delphi, and passes the name of the DPR file to it.  Voila!
  20.  
  21.  
  22. Winstart was originally written in Visual Basic but this version was
  23. re-written using Borland Delphi - a product that I'm still not real familiar
  24. with.  Preliminary testing has revelead no problems but if you run across
  25. one, let me know and I'll get it fixed ASAP.
  26.  
  27. Please send all comments, complaints, etc to me at CompuServe ID: 71730,573
  28.  
  29.  
  30. Michael E. Reed                            July 8, 95