Using schtasks in batch file to launch application.

Discussion in 'Software' started by question2ask, Jul 19, 2004.

  1. question2ask

    question2ask Private E-2

    Does anyone know the command to do the following:
    Launch an application once from within a batch script which will only be required to launch once and then close down.

    Example: Would using schtasks be a decent option?

    Have tried numerous methods but i don't want to specify a set time for this to be run.
    Ideally it would
    1. create the task
    2. Run the task
    3. Delete the task.

    Cheers,
    Al help appreciated
     
  2. snakefoot

    snakefoot Sergeant Major

    Why use schtasks for starting the application, and not just launch the application from the batch file ?
     
  3. NeoNemesis

    NeoNemesis Moutharrhea

    yeah, i would write a regular batch file using the Call command so like something that would open solitaire would be:

    echo This will open a game of solitaire
    Call Solitaire
     
  4. snakefoot

    snakefoot Sergeant Major

    Well there is no problem in just launching the application-exefile directly from a batch file. (Without using Call or schtasks)

    The Call thing is mainly for calling another batch-file, where you want the control back after having performed the other batch-file

    Do you want to have control back to the batch file after the launched application has ended ?
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds