Run a shortcut in batch?

Solved
aurovic Posted messages 15 Status Member -  
 SGTherbert -
Hello

How to launch a shortcut in a .bat file knowing that it is possible to do so from scheduled tasks?

Thank you

o¿ô
Aurovic

2 answers

  1. grofwa Posted messages 440 Status Member 479
     
    Sorry aurovic, but it works for me...
    ... on XP Pro at least.

    Don't worry about not being noticed; instead, seek to do something remarkable [Confucius]
    -3
    1. aurovic Posted messages 15 Status Member
       
      re grofwa

      Do you use START to launch the application or something else?

      o¿ô
      Aurovic
      0
    2. webpgmr
       


      USE the following syntax grofwa:

      START shortcutName (without the .lnk extension)

      It wasn't working for me either otherwise (win xp pro sp1)

      good luck!
      0
  2. grofwa Posted messages 440 Status Member 479
     
    Hi,

    Well, in your shortcut, you put your shortcut with the .lnk extension at the end. Nothing groundbreaking, it seems to me...

    Michael.

    Do not concern yourself with not being noticed; rather, aim to do something remarkable [Confucius]
    -4
    1. aurovic Posted messages 15 Status Member
       
      Thank you for your response grofwa, but ......... it doesn't work!

      I'm using "start" to launch this shortcut! Is that correct?

      Here is my script too

      @ echo off

      REM *START OF PROCESSING*

      REM *CHECK FILE PRESENCE*
      cd\
      cd C:\folder\folder\folder

      REM *EXECUTE*

      START "shortcut.lnk"

      REM *END OF PROCESSING*

      @Echo off
      0
      1. SGTherbert > aurovic Posted messages 15 Status Member
         
        if you simply put STARD nomRaccourci without the extension, it should work.
        0
    2. SGTherbert
       
      For example
      START DOSBox
      with the DOSBox shortcut in the same location as the file
      0