Home All Groups Group Topic Archive Search About
Author
16 Feb 2009 8:40 PM
SBS user
I have a script that I want to run at login, but only from the console.  I
don't want it to run if logged into a terminal session.  Is there a way to
use the startup folder in this fassion?

Author
16 Feb 2009 8:51 PM
Pegasus (MVP)
"SBS user" <u***@domain.com> wrote in message
news:%23j9RRbHkJHA.4504@TK2MSFTNGP05.phx.gbl...
>I have a script that I want to run at login, but only from the console.  I
>don't want it to run if logged into a terminal session.  Is there a way to
>use the startup folder in this fassion [fashion]?

AFAIR you can test %ClientName%. It is defined for terminal sessions only.
Author
4 Mar 2009 10:44 PM
SBS user
Can you give me some sample options for that?  Basically I want to start an
app when logging into the console.

Show quoteHide quote
"Pegasus (MVP)" <I.***@fly.com.oz> wrote in message
news:eJpgYhHkJHA.1172@TK2MSFTNGP05.phx.gbl...
>
> "SBS user" <u***@domain.com> wrote in message
> news:%23j9RRbHkJHA.4504@TK2MSFTNGP05.phx.gbl...
>>I have a script that I want to run at login, but only from the console.  I
>>don't want it to run if logged into a terminal session.  Is there a way to
>>use the startup folder in this fassion [fashion]?
>
> AFAIR you can test %ClientName%. It is defined for terminal sessions only.
>
Author
5 Mar 2009 3:06 PM
FNL
if  "%ClientName%"=="" start /b "Application" "c:\program files\...\..."

Show quoteHide quote
"SBS user" <u***@domain.com> wrote in message
news:%23dUzPrRnJHA.4532@TK2MSFTNGP02.phx.gbl...
> Can you give me some sample options for that?  Basically I want to start
> an
> app when logging into the console.
>
> "Pegasus (MVP)" <I.***@fly.com.oz> wrote in message
> news:eJpgYhHkJHA.1172@TK2MSFTNGP05.phx.gbl...
>>
>> "SBS user" <u***@domain.com> wrote in message
>> news:%23j9RRbHkJHA.4504@TK2MSFTNGP05.phx.gbl...
>>>I have a script that I want to run at login, but only from the console.
>>>I don't want it to run if logged into a terminal session.  Is there a way
>>>to use the startup folder in this fassion [fashion]?
>>
>> AFAIR you can test %ClientName%. It is defined for terminal sessions
>> only.
>>
>
Author
13 Mar 2009 7:53 PM
SBS user
Thanks for the update I will give that a try

Show quoteHide quote
"FNL" <n***@microsoft.com> wrote in message
news:eaK4vPanJHA.5980@TK2MSFTNGP06.phx.gbl...
> if  "%ClientName%"=="" start /b "Application" "c:\program files\...\..."
>
> "SBS user" <u***@domain.com> wrote in message
> news:%23dUzPrRnJHA.4532@TK2MSFTNGP02.phx.gbl...
>> Can you give me some sample options for that?  Basically I want to start
>> an
>> app when logging into the console.
>>
>> "Pegasus (MVP)" <I.***@fly.com.oz> wrote in message
>> news:eJpgYhHkJHA.1172@TK2MSFTNGP05.phx.gbl...
>>>
>>> "SBS user" <u***@domain.com> wrote in message
>>> news:%23j9RRbHkJHA.4504@TK2MSFTNGP05.phx.gbl...
>>>>I have a script that I want to run at login, but only from the console.
>>>>I don't want it to run if logged into a terminal session.  Is there a
>>>>way to use the startup folder in this fassion [fashion]?
>>>
>>> AFAIR you can test %ClientName%. It is defined for terminal sessions
>>> only.
>>>
>>
>
>
Author
24 Mar 2009 11:25 AM
SBS user
I am not familiar with VB scritping.  Is there a way that this can be done
with a batch file?  If not what do I need to do to get the VB script
working?

Show quoteHide quote
"FNL" <n***@microsoft.com> wrote in message
news:eaK4vPanJHA.5980@TK2MSFTNGP06.phx.gbl...
> if  "%ClientName%"=="" start /b "Application" "c:\program files\...\..."
>
> "SBS user" <u***@domain.com> wrote in message
> news:%23dUzPrRnJHA.4532@TK2MSFTNGP02.phx.gbl...
>> Can you give me some sample options for that?  Basically I want to start
>> an
>> app when logging into the console.
>>
>> "Pegasus (MVP)" <I.***@fly.com.oz> wrote in message
>> news:eJpgYhHkJHA.1172@TK2MSFTNGP05.phx.gbl...
>>>
>>> "SBS user" <u***@domain.com> wrote in message
>>> news:%23j9RRbHkJHA.4504@TK2MSFTNGP05.phx.gbl...
>>>>I have a script that I want to run at login, but only from the console.
>>>>I don't want it to run if logged into a terminal session.  Is there a
>>>>way to use the startup folder in this fassion [fashion]?
>>>
>>> AFAIR you can test %ClientName%. It is defined for terminal sessions
>>> only.
>>>
>>
>
>
Author
24 Mar 2009 12:53 PM
Pegasus [MVP]
"SBS user" <u***@domain.com> wrote in message
news:upQRCNHrJHA.1492@TK2MSFTNGP03.phx.gbl...
>I am not familiar with VB scritping.  Is there a way that this can be done
>with a batch file?  If not what do I need to do to get the VB script
>working?

The example I gave you (while posting under my "FNL" alias) is a batch file
command, not a VB Script line of code. Why don't you give it a try?
Author
3 Jun 2009 5:12 PM
SBS user
Okay, I have put this off for awhile but want to get it figured out.  So if
I create a batch file and put the following line in it

if  "%ClientName%"=="" start /b "Application" "c:\program files\...\..."

then I just need to change the "c:\program files\...\..." section to the
location of the app I want to run and it will only run when logged in from
the console and will not run when logged in from a terminal session?


Show quoteHide quote
"Pegasus [MVP]" <n***@microsoft.com> wrote in message
news:e%23y849HrJHA.496@TK2MSFTNGP06.phx.gbl...
>
> "SBS user" <u***@domain.com> wrote in message
> news:upQRCNHrJHA.1492@TK2MSFTNGP03.phx.gbl...
>>I am not familiar with VB scritping.  Is there a way that this can be done
>>with a batch file?  If not what do I need to do to get the VB script
>>working?
>
> The example I gave you (while posting under my "FNL" alias) is a batch
> file command, not a VB Script line of code. Why don't you give it a try?
>
Author
3 Jun 2009 6:15 PM
Pegasus [MVP]
This thread appears to be about 10 weeks old and most of it has disappeared
from the horizon of my newsreader. As I said before: Why don't you give it a
try and watch what happens?

Show quoteHide quote
"SBS user" <u***@domain.com> wrote in message
news:O4LvE6G5JHA.140@TK2MSFTNGP03.phx.gbl...
> Okay, I have put this off for awhile but want to get it figured out.  So
> if I create a batch file and put the following line in it
>
> if  "%ClientName%"=="" start /b "Application" "c:\program files\...\..."
>
> then I just need to change the "c:\program files\...\..." section to the
> location of the app I want to run and it will only run when logged in from
> the console and will not run when logged in from a terminal session?
>
>
> "Pegasus [MVP]" <n***@microsoft.com> wrote in message
> news:e%23y849HrJHA.496@TK2MSFTNGP06.phx.gbl...
>>
>> "SBS user" <u***@domain.com> wrote in message
>> news:upQRCNHrJHA.1492@TK2MSFTNGP03.phx.gbl...
>>>I am not familiar with VB scritping.  Is there a way that this can be
>>>done with a batch file?  If not what do I need to do to get the VB script
>>>working?
>>
>> The example I gave you (while posting under my "FNL" alias) is a batch
>> file command, not a VB Script line of code. Why don't you give it a try?
>>
>
Author
3 Jun 2009 8:38 PM
SBS user
Looks good, Thanks

Show quoteHide quote
"Pegasus [MVP]" <n***@microsoft.com> wrote in message
news:%233SrJdH5JHA.480@TK2MSFTNGP06.phx.gbl...
> This thread appears to be about 10 weeks old and most of it has
> disappeared from the horizon of my newsreader. As I said before: Why don't
> you give it a try and watch what happens?
>
> "SBS user" <u***@domain.com> wrote in message
> news:O4LvE6G5JHA.140@TK2MSFTNGP03.phx.gbl...
>> Okay, I have put this off for awhile but want to get it figured out.  So
>> if I create a batch file and put the following line in it
>>
>> if  "%ClientName%"=="" start /b "Application" "c:\program files\...\..."
>>
>> then I just need to change the "c:\program files\...\..." section to the
>> location of the app I want to run and it will only run when logged in
>> from the console and will not run when logged in from a terminal session?
>>
>>
>> "Pegasus [MVP]" <n***@microsoft.com> wrote in message
>> news:e%23y849HrJHA.496@TK2MSFTNGP06.phx.gbl...
>>>
>>> "SBS user" <u***@domain.com> wrote in message
>>> news:upQRCNHrJHA.1492@TK2MSFTNGP03.phx.gbl...
>>>>I am not familiar with VB scritping.  Is there a way that this can be
>>>>done with a batch file?  If not what do I need to do to get the VB
>>>>script working?
>>>
>>> The example I gave you (while posting under my "FNL" alias) is a batch
>>> file command, not a VB Script line of code. Why don't you give it a try?
>>>
>>
>
>