Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > startup scripting

Reply
Thread Tools Display Modes

startup scripting

 
 
SBS user
Guest
Posts: n/a

 
      02-16-2009
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?

 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      02-16-2009

"SBS user" <> wrote in message
news:%...
>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.


 
Reply With Quote
 
SBS user
Guest
Posts: n/a

 
      03-04-2009
Can you give me some sample options for that? Basically I want to start an
app when logging into the console.

"Pegasus (MVP)" <> wrote in message
news:...
>
> "SBS user" <> wrote in message
> news:%...
>>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.
>


 
Reply With Quote
 
FNL
Guest
Posts: n/a

 
      03-05-2009
if "%ClientName%"=="" start /b "Application" "c:\program files\...\..."

"SBS user" <> wrote in message
news:%...
> Can you give me some sample options for that? Basically I want to start
> an
> app when logging into the console.
>
> "Pegasus (MVP)" <> wrote in message
> news:...
>>
>> "SBS user" <> wrote in message
>> news:%...
>>>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.
>>

>



 
Reply With Quote
 
SBS user
Guest
Posts: n/a

 
      03-13-2009
Thanks for the update I will give that a try

"FNL" <> wrote in message
news:...
> if "%ClientName%"=="" start /b "Application" "c:\program files\...\..."
>
> "SBS user" <> wrote in message
> news:%...
>> Can you give me some sample options for that? Basically I want to start
>> an
>> app when logging into the console.
>>
>> "Pegasus (MVP)" <> wrote in message
>> news:...
>>>
>>> "SBS user" <> wrote in message
>>> news:%...
>>>>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.
>>>

>>

>
>


 
Reply With Quote
 
SBS user
Guest
Posts: n/a

 
      03-24-2009
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?

"FNL" <> wrote in message
news:...
> if "%ClientName%"=="" start /b "Application" "c:\program files\...\..."
>
> "SBS user" <> wrote in message
> news:%...
>> Can you give me some sample options for that? Basically I want to start
>> an
>> app when logging into the console.
>>
>> "Pegasus (MVP)" <> wrote in message
>> news:...
>>>
>>> "SBS user" <> wrote in message
>>> news:%...
>>>>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.
>>>

>>

>
>


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a

 
      03-24-2009

"SBS user" <> wrote in message
news:...
>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?


 
Reply With Quote
 
SBS user
Guest
Posts: n/a

 
      04-08-2009
Sorry I thought you said it was VB, I will give that a try


"Pegasus [MVP]" <> wrote in message
news:e%...
>
> "SBS user" <> wrote in message
> news:...
>>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?
>


 
Reply With Quote
 
SBS user
Guest
Posts: n/a

 
      06-03-2009
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]" <> wrote in message
news:e%...
>
> "SBS user" <> wrote in message
> news:...
>>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?
>


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a

 
      06-03-2009
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" <> wrote in message
news:...
> 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]" <> wrote in message
> news:e%...
>>
>> "SBS user" <> wrote in message
>> news:...
>>>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?
>>

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Is Acronis Startup Recovery compatible with Vista Startup Repair? David B. Windows Vista File Management 0 10-14-2009 05:42 PM
HOW to Stop STartup Programs that do not show in the "startup" folder or have options in the programs to not start at windows startup james Windows Vista Installation 3 06-30-2008 12:22 AM
Domain Startup Scripting Shawn Romine Scripting 3 12-04-2006 04:59 PM
Scripting help- using the Scripting Guys scrips DJK Windows Small Business Server 4 12-26-2005 11:52 PM
Command Line Scripting on W2003 Server (as opposed to GUI tool scripting) it_chick Scripting 0 04-01-2004 04:46 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59