home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 32 Periodic / 32-Periodic.zip / ez113htm.zip / VDMSTART.CMD < prev    next >
OS/2 REXX Batch file  |  1996-10-31  |  1KB  |  39 lines

  1. /* Starting a DOS VDM with specific settings */
  2.  
  3. /* Load the REXXUTIL library functions */
  4. rc=rxfuncadd('SysLoadFuncs','RexxUtil','SysLoadFuncs')
  5. call sysloadfuncs
  6.  
  7. /* Set up some variables */
  8. WindowTitle="DOS VDM"   /* Change as appropriate */
  9. Class='WPProgram'       /* This is a Program object */
  10. Location='<WP_NOWHERE>' /* Used for transient objects */
  11.  
  12. /* Set Program to the path of the DOS executable */
  13. Program='EXENAME=f:\os2\mdos\command.com;' 
  14.  
  15. /* Set type to WINDOWEDVDM to have the program run in 
  16.    a DOS window, or VDM to have it run in full
  17.    screen mode
  18. */
  19. Type='PROGTYPE=WINDOWEDVDM;'   /* Windowed DOS session */
  20.  
  21. /* Set Startup to the startup directory you want */
  22. startup='STARTUPDIR=c:\;'  
  23.  
  24. /* Here's where we set the program settings.
  25.    Set to whatever you need, separating multiple settings with commas.
  26.    Use 1 for ON and 0 for OFF settings
  27.    Look at the settings notebook for a DOS object to see
  28.    all of the possibilities.
  29. */
  30. Settings='IDLE_SENSITIVITY=100;'
  31.  
  32. /* Now make it go */
  33. open='OPEN=DEFAULT'
  34. rc=SysCreateObject(Class,WindowTitle,Location,,  /* The 2nd comma is a continuation */
  35.   Program||Type||Startup||Settings||Open,'replace') /* to the next line. */
  36. Say "rc:" rc
  37. Exit
  38. /* End of program */
  39.