home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / cmdshell.zip / CMDSHELL.CMD next >
OS/2 REXX Batch file  |  1994-01-31  |  2KB  |  72 lines

  1. /* 1/29/1994 John M. Warren  This program is hereby released as FREE PUBLIC DOMAIN software.*/
  2. /* REXX program to ask the user for command line parameters before running a program. */
  3. /* This software comes with NO warranty whatsoever. */
  4.  
  5. /*
  6. How to use this program :
  7.  
  8.     1.  Simply create a new program object.   
  9.     2.  Under the "Path and file name" instead of putting the name and path of
  10.          your executable program, put the name and path of this command file.
  11.  
  12.          example :     C:\OS2\CMDSHELL.CMD
  13.  
  14.     3.  Next, under the "Parameters" field add the path and filename of your
  15.          program.    (hint : you can parameters that you use ALL the time after the filename too.)  
  16.  
  17.          example :     C:\PROGRAMS\PKZIP\PKZIP.EXE
  18.  
  19. For convenience sake I would recommend opening your Templates folder, making a copy of the "Program" object and perform step 2.   From then on you could just copy this template object and would only have to
  20. fill in the path and filename.
  21. */
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. /* ASK THE USER TO SUPPLY THE COMMAND LINE PARAMETERS */
  29.  
  30. /* #include "mental.h"     just kidding, I had to do that for you "C" programmers   :-) */
  31.  
  32. ECHO OFF
  33. CLS
  34.  
  35. SAY "CMDSHELL (c) 1993, John M. Warren"
  36. SAY " "
  37. SAY "You have just executed program which requires command line parameters"
  38. SAY " "
  39. SAY "Please enter the parameters for this program below :"
  40. SAY " "
  41. SAY "Current Directory"
  42. CD 
  43. SAY " "
  44. SAY "COMMAND : " ARG(1)
  45. SAY " "
  46. PULL PARAMETERS
  47. RUNLINE = ARG(1)
  48. CLS
  49. ECHO ON
  50. RUNLINE PARAMETERS
  51.  
  52.  
  53. /* I really hate when my screen goes to fast to read */
  54. SAY " "
  55. SAY " "
  56. SAY "*** PROGRAM HAS TERMINATED PRESS ENTER TO CONTINUE ***"
  57. PULL DUMMY
  58.  
  59.  
  60. /*  
  61. This program is free.  However,  I'm in desperate need of an OS/2 C++ compiler ($350.00) so I can begin writing some really usefull utilites/games/applications and other stuff for OS/2.  So any contributions to fund my continuing education into C++ programming is greatly appreciated.  Please send checks to :
  62.  
  63.   John M. Warren
  64.   P.O. Box 609
  65.   Vernon, Fl. 32462
  66.  
  67.    I can also be contacted at my bbs.   The Code 3 BBS, The Programmers Connection 904-535-1705 14.4k
  68.                                                       Source Code, Game Code, & over 1.5G of shareware
  69.                                                       Full access first call.  1 Hour per day.  No UL/DL restrictions.
  70.             
  71.  
  72. */