הפעלת יישומים מחלון CMD או מתוך קובץ Script

(EZ0069)

פורסם: 26 בדצמבר, 2005

ניתן להפעיל יישום מחלון CMD או מתוך קובץ Script ע"י הפקודה Start.

ניתן לבצע זאת בדרך הבאה:

שורת הפקודה עם פקודת start


קובץ אצווה המכיל פקודת start

פקודה זאת מאפשרת לקבוע האם יפתח היישום במסך מלא או במצב ממוזער, האם יפתח כתהליך נפרד ובחלון נפרד וכן את עדיפות היישום:

Command Syntax:

      ‎START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]‎
      ‎[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]‎
      ‎[/WAIT] [/B] [command/program] [parameters]‎
    

Command Switches:

      ‎"title" - Title to display in  window title bar.‎

      ‎path   - Starting directory.‎

      ‎B       -  Start application without creating a new window.‎
      ‎Note: The application has ^C handling ignored.‎
      ‎Unless the application enables ^C processing, ^Break is the only‎
      ‎way to interrupt the application.‎

      ‎I          The new environment will be the original environment passed‎
      ‎to the cmd.exe and not the current environment.‎
      
      ‎MIN    -     Start window minimized.‎

      ‎MAX   -      Start window maximized.‎

      ‎SEPARATE  -  Start 16-bit Windows program in separate memory space.‎

      ‎SHARED    -  Start 16-bit Windows program in shared memory space.‎

      ‎LOW      -   Start application in the IDLE priority class.‎

      ‎NORMAL  -    Start application in the NORMAL priority class.‎

      ‎HIGH     -   Start application in the HIGH priority class.‎

      ‎REALTIME  -  Start application in the REALTIME priority class.‎

      ‎ABOVENORMAL Start application in the ABOVENORMAL priority class.‎

      ‎BELOWNORMAL Start application in the BELOWNORMAL priority class.‎

      ‎WAIT        Start application and wait for it to terminate command / program‎

      ‎Note:        If it is an internal cmd command or a batch file then‎
      ‎the command processor is run with the /K switch to cmd.exe.‎
      ‎This means that the window will remain after the command‎
      ‎has been run.‎
    

למעלהלמעלה