Run a shortcut in batch?

Solved
aurovic Posted messages 15 Status Membre -  
 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 réponses

grofwa Posted messages 440 Status Membre 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
aurovic Posted messages 15 Status Membre
 
re grofwa

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

o¿ô
Aurovic
0
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
grofwa Posted messages 440 Status Membre 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
aurovic Posted messages 15 Status Membre
 
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
SGTherbert > aurovic Posted messages 15 Status Membre
 
if you simply put STARD nomRaccourci without the extension, it should work.
0
SGTherbert
 
For example
START DOSBox
with the DOSBox shortcut in the same location as the file
0