|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
startup scriptingI 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? "SBS user" <u***@domain.com> wrote in message AFAIR you can test %ClientName%. It is defined for terminal sessions only.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]? 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. > 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. >> > 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. >>> >> > > 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. >>> >> > > "SBS user" <u***@domain.com> wrote in message The example I gave you (while posting under my "FNL" alias) is a batch file 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? command, not a VB Script line of code. Why don't you give it a try? 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? > 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? >> > 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? >>> >> > >
Batch Script to parse lines in text file
WMI Script, access denied? Deleting and re-installing printer with new name using login scrip send mail if ping faile Drop leading zeros in a variable Echo to column position Script for deleting folders + content in root of D:\ after # days Script to set user permissions Scruot to check user rights on folders/subfolders folder permission |
|||||||||||||||||||||||