Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
scripts
hosting
jscript
remote
scripting.wsh
scriptlets
vbscript
virus.discussion
  
 
date: Mon, 21 Jan 2008 11:22:23 +0100,    group: microsoft.public.scripting.wsh        back       


Applications from desktop shortcut   
Hi all,
is it possible to run more than one application from a desktop shortcut
without using a script/batch file ?

Thanks
--
SteM
date: Mon, 21 Jan 2008 11:22:23 +0100   author:   SteM

Re: Applications from desktop shortcut   
"SteM"  wrote in message 
news:%23n2uEeBXIHA.4868@TK2MSFTNGP03.phx.gbl...
> Hi all,
> is it possible to run more than one application from a desktop shortcut
> without using a script/batch file ?
>
> Thanks
> --
> SteM
>
>

Yes - you can join the various commands in the "Target" box with an 
ampersand (&).
date: Mon, 21 Jan 2008 11:58:19 +0100   author:   Pegasus \(MVP\)

Re: Applications from desktop shortcut   
Thanks !
But my test was 'calc & regedit' and i only see the calculator .... ??

--
SteM

"Pegasus (MVP)"  ha scritto nel messaggio
news:%23TrhMyBXIHA.3940@TK2MSFTNGP05.phx.gbl...
>
> "SteM"  wrote in message
> news:%23n2uEeBXIHA.4868@TK2MSFTNGP03.phx.gbl...
> > Hi all,
> > is it possible to run more than one application from a desktop shortcut
> > without using a script/batch file ?
> >
> > Thanks
> > --
> > SteM
> >
> >
>
> Yes - you can join the various commands in the "Target" box with an
> ampersand (&).
>
>
date: Mon, 21 Jan 2008 14:07:04 +0100   author:   SteM

Re: Applications from desktop shortcut   
On Jan 21, 8:07 am, "SteM"  wrote:
> Thanks !
> But my test was 'calc & regedit' and i only see the calculator .... ??
>
> --
> SteM
>
> "Pegasus (MVP)"  ha scritto nel messaggionews:%23TrhMyBXIHA.3940@TK2MSFTNGP05.phx.gbl...
>
>
>
> > "SteM"  wrote in message
> >news:%23n2uEeBXIHA.4868@TK2MSFTNGP03.phx.gbl...
> > > Hi all,
> > > is it possible to run more than one application from a desktop shortcut
> > > without using a script/batch file ?
>
> > > Thanks
> > > --
> > > SteM
>
> > Yes - you can join the various commands in the "Target" box with an
> > ampersand (&).

I got this to work (all on the Target line) ...

%comspec% /c (start "" %windir%\system32\calc.exe & start "" %windir%
\system32\regedt32.exe)

I set the Run property to Minimized to hid the command console window
that would otherwise flash onto the screen momentarily as this process
is executed.  You may also want to change the icon from the default
command console icon that results.

The Target line could be as simple as ...

%comspec% /c (start "" calc & start "" regedt32)

if the two executables are in folders named in the PATH environment
variable, but it's always safe to use the fully qualified filespec as
in the first example.

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
date: Mon, 21 Jan 2008 05:29:36 -0800 (PST)   author:   Tom Lavedas

Re: Applications from desktop shortcut   
Try it like so:
cmd.exe /c start /b %windir%\system32\calc.exe & regedit.exe


"SteM"  wrote in message 
news:eluXG6CXIHA.5716@TK2MSFTNGP05.phx.gbl...
> Thanks !
> But my test was 'calc & regedit' and i only see the calculator .... ??
>
> --
> SteM
>
> "Pegasus (MVP)"  ha scritto nel messaggio
> news:%23TrhMyBXIHA.3940@TK2MSFTNGP05.phx.gbl...
>>
>> "SteM"  wrote in message
>> news:%23n2uEeBXIHA.4868@TK2MSFTNGP03.phx.gbl...
>> > Hi all,
>> > is it possible to run more than one application from a desktop shortcut
>> > without using a script/batch file ?
>> >
>> > Thanks
>> > --
>> > SteM
>> >
>> >
>>
>> Yes - you can join the various commands in the "Target" box with an
>> ampersand (&).
>>
>>
>
>
date: Mon, 21 Jan 2008 14:29:50 +0100   author:   Pegasus \(MVP\)

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us