home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / PROG / C_PLUS / CNVLIB2 / DOSFROMW.BAT < prev    next >
Encoding:
DOS Batch File  |  1994-05-25  |  655 b   |  21 lines

  1. @echo OFF
  2. REM DosFromW.bat - Run DOS command from windows, and then
  3. REM ver.1          switch back to windows. To use this, you
  4. REM                must have DOSSLAVE.CMD running.
  5.  
  6. if NOT (%2)==() GOTO EXECUTE
  7.  
  8. ECHO DosFromW.bat - Execute DOS command then switch back to windows
  9. ECHO USAGE: DosFromW WinTitle Commands...
  10. ECHO WHERE: WinTitle - Windows title to switch back to
  11. ECHO        Commands... - any DOS commands to execute
  12. ECHO EXAMPLE: Call this from windows titled PROGMAN
  13. ECHO          DOSFROMW.BAT PROGMAN EDIT C:\AUTOEXEC.BAT
  14. GOTO ALL_DONE
  15.  
  16. :EXECUTE
  17. command.com /C %2 %3 %4 %5 %6 %7 %8 %9
  18. CALL OS2.BAT SWITCH %1
  19.  
  20. :ALL_DONE
  21.