PC Review


Reply
Thread Tools Rate Thread

Calling webpage with logon script, logon script wont close

 
 
gerryR
Guest
Posts: n/a
 
      4th Nov 2009
Hi

We have a small batch script that disconnects all network drives then remaps
them again.

We want out timesheet page to open for everyone now and if I add the line
below to the bottom of the script it opens the page fine but the logon
script doesn't close. It only closes once the timesheet page is closed.
Any way to have the script exit once it opens the page?

net use t:\ \\server01\transfer
"c:\program files\internet explorer\iexplore.exe"
intranet.companyname.com/timesheets


Thanks for any help!
Gerry

 
Reply With Quote
 
 
 
 
foxidrive
Guest
Posts: n/a
 
      4th Nov 2009
On Wed, 4 Nov 2009 09:00:14 -0000, "gerryR" <(E-Mail Removed)> wrote:

>We have a small batch script that disconnects all network drives then remaps
>them again.
>
>We want out timesheet page to open for everyone now and if I add the line
>below to the bottom of the script it opens the page fine but the logon
>script doesn't close. It only closes once the timesheet page is closed.
>Any way to have the script exit once it opens the page?
>
>net use t:\ \\server01\transfer


try this:

start "" "c:\program files\internet explorer\iexplore.exe"
intranet.companyname.com/timesheets

>Thanks for any help!
>Gerry

 
Reply With Quote
 
gerryR
Guest
Posts: n/a
 
      4th Nov 2009
Perfect!

Thanks foxidrive, what do the two "" do to the command?

"foxidrive" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> On Wed, 4 Nov 2009 09:00:14 -0000, "gerryR" <(E-Mail Removed)> wrote:
>
>>We have a small batch script that disconnects all network drives then
>>remaps
>>them again.
>>
>>We want out timesheet page to open for everyone now and if I add the line
>>below to the bottom of the script it opens the page fine but the logon
>>script doesn't close. It only closes once the timesheet page is closed.
>>Any way to have the script exit once it opens the page?
>>
>>net use t:\ \\server01\transfer

>
> try this:
>
> start "" "c:\program files\internet explorer\iexplore.exe"
> intranet.companyname.com/timesheets
>
>>Thanks for any help!
>>Gerry


 
Reply With Quote
 
foxidrive
Guest
Posts: n/a
 
      4th Nov 2009
On Wed, 4 Nov 2009 10:13:58 -0000, "gerryR" <(E-Mail Removed)> wrote:

>Perfect!
>
>Thanks foxidrive, what do the two "" do to the command?


>> start "" "c:\program files\internet explorer\iexplore.exe"
>> intranet.companyname.com/timesheets


In NT and higher the first quotes are used as a title for the window itself
so if you didn't have "" or something like "My Window" before the quoted
command line then it would have used "c:\program files\internet
explorer\iexplore.exe" as the title for the windows and not executed it.

 
Reply With Quote
 
gerryR
Guest
Posts: n/a
 
      4th Nov 2009

Good to know, thanks again!

"foxidrive" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Wed, 4 Nov 2009 10:13:58 -0000, "gerryR" <(E-Mail Removed)> wrote:
>
>>Perfect!
>>
>>Thanks foxidrive, what do the two "" do to the command?

>
>>> start "" "c:\program files\internet explorer\iexplore.exe"
>>> intranet.companyname.com/timesheets

>
> In NT and higher the first quotes are used as a title for the window
> itself
> so if you didn't have "" or something like "My Window" before the quoted
> command line then it would have used "c:\program files\internet
> explorer\iexplore.exe" as the title for the windows and not executed it.
>

 
Reply With Quote
 
Tim Meddick
Guest
Posts: n/a
 
      4th Nov 2009
foxidrive,
surly, the [start "title" "command"] only applies to naming the
title of a CMD.EXE window, not the title of a Window's application.
When the batch-script quoted executes the line you suggested :

start "" "c:\program files\internet explorer\iexplore.exe"
intranet.companyname.com/timesheets

....the window-title will be governed by the html [web] page that is the target of the
iexplore.exe command (set with the html tagline: <TITLE> My Window </TITLE>).

As I said, I thought that the only relevance adding the "title" in the "start"
command is when calling up another command-prompt window...?

==

Cheers, Tim Meddick, Peckham, London. :-)




"foxidrive" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Wed, 4 Nov 2009 10:13:58 -0000, "gerryR" <(E-Mail Removed)> wrote:
>
>>Perfect!
>>
>>Thanks foxidrive, what do the two "" do to the command?

>
>>> start "" "c:\program files\internet explorer\iexplore.exe"
>>> intranet.companyname.com/timesheets

>
> In NT and higher the first quotes are used as a title for the window itself
> so if you didn't have "" or something like "My Window" before the quoted
> command line then it would have used "c:\program files\internet
> explorer\iexplore.exe" as the title for the windows and not executed it.
>


 
Reply With Quote
 
Guest
Posts: n/a
 
      4th Nov 2009
The FIRST quotes the Start command finds will be used as the title for a new
command prompt window whether one is being created or not.

--
..
--
"Tim Meddick" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> foxidrive,
> surly, the [start "title" "command"] only applies to
> naming the title of a CMD.EXE window, not the title of a Window's
> application.
> When the batch-script quoted executes the line you suggested :
>
> start "" "c:\program files\internet explorer\iexplore.exe"
> intranet.companyname.com/timesheets
>
> ...the window-title will be governed by the html [web] page that is the
> target of the iexplore.exe command (set with the html tagline: <TITLE> My
> Window </TITLE>).
>
> As I said, I thought that the only relevance adding the "title" in the
> "start" command is when calling up another command-prompt window...?
>
> ==
>
> Cheers, Tim Meddick, Peckham, London. :-)
>
>
>
>
> "foxidrive" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> On Wed, 4 Nov 2009 10:13:58 -0000, "gerryR" <(E-Mail Removed)> wrote:
>>
>>>Perfect!
>>>
>>>Thanks foxidrive, what do the two "" do to the command?

>>
>>>> start "" "c:\program files\internet explorer\iexplore.exe"
>>>> intranet.companyname.com/timesheets

>>
>> In NT and higher the first quotes are used as a title for the window
>> itself
>> so if you didn't have "" or something like "My Window" before the quoted
>> command line then it would have used "c:\program files\internet
>> explorer\iexplore.exe" as the title for the windows and not executed it.
>>

>


 
Reply With Quote
 
Tim Meddick
Guest
Posts: n/a
 
      4th Nov 2009
....but if there are only one set of quotes - the start command will try to execute
it - not assume it's a title.

So the original command line quoted :

start "" "c:\program files\internet explorer\iexplore.exe"
intranet.companyname.com/timesheets

...really does not need the initial set of double-quotes, no?

==

Cheers, Tim Meddick, Peckham, London. :-)




<.> wrote in message news:(E-Mail Removed)...
> The FIRST quotes the Start command finds will be used as the title for a new
> command prompt window whether one is being created or not.
>
> --
> .
> --
> "Tim Meddick" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> foxidrive,
>> surly, the [start "title" "command"] only applies to naming the
>> title of a CMD.EXE window, not the title of a Window's application.
>> When the batch-script quoted executes the line you suggested :
>>
>> start "" "c:\program files\internet explorer\iexplore.exe"
>> intranet.companyname.com/timesheets
>>
>> ...the window-title will be governed by the html [web] page that is the target of
>> the iexplore.exe command (set with the html tagline: <TITLE> My Window </TITLE>).
>>
>> As I said, I thought that the only relevance adding the "title" in the "start"
>> command is when calling up another command-prompt window...?
>>
>> ==
>>
>> Cheers, Tim Meddick, Peckham, London. :-)
>>
>>
>>
>>
>> "foxidrive" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> On Wed, 4 Nov 2009 10:13:58 -0000, "gerryR" <(E-Mail Removed)> wrote:
>>>
>>>>Perfect!
>>>>
>>>>Thanks foxidrive, what do the two "" do to the command?
>>>
>>>>> start "" "c:\program files\internet explorer\iexplore.exe"
>>>>> intranet.companyname.com/timesheets
>>>
>>> In NT and higher the first quotes are used as a title for the window itself
>>> so if you didn't have "" or something like "My Window" before the quoted
>>> command line then it would have used "c:\program files\internet
>>> explorer\iexplore.exe" as the title for the windows and not executed it.
>>>

>>

>


 
Reply With Quote
 
Tom Lavedas
Guest
Posts: n/a
 
      4th Nov 2009
On Nov 4, 3:31*pm, "Tim Meddick" <timmedd...@gawab.com> wrote:
> ...but if there are only one set of quotes - the start command will try to execute
> it - not assume it's a title.
>
> So the original command line quoted :
>
> start "" "c:\program files\internet explorer\iexplore.exe"
> intranet.companyname.com/timesheets
>
> ..really does not need the initial set of double-quotes, no?
>
> ==
>
> Cheers, * *Tim Meddick, * *Peckham, London. * *:-)
>
> <.> wrote in messagenews:(E-Mail Removed)...
> > The FIRST quotes the Start command finds will be used as the title for a new
> > command prompt window whether one is being created or not.

>
> > --
> > .
> > --
> > "Tim Meddick" <timmedd...@gawab.com> wrote in message
> >news:%(E-Mail Removed)...
> >> foxidrive,
> >> * * * * * * * *surly, the *[start "title" "command"]only applies to naming the
> >> title of a CMD.EXE window, not the title of a Window's application.
> >> * *When the batch-script quoted executes the line you suggested :

>
> >> start "" "c:\program files\internet explorer\iexplore.exe"
> >> intranet.companyname.com/timesheets

>
> >> ...the window-title will be governed by the html [web] page that is the target of
> >> the iexplore.exe command (set with the html tagline: <TITLE> My Window</TITLE>).

>
> >> As I said, I thought that the only relevance adding the "title" in the"start"
> >> command is when calling up another command-prompt window...?

>
> >> ==

>
> >> Cheers, * *Tim Meddick, * *Peckham, London. * *:-)

>
> >> "foxidrive" <got...@woohoo.invalid> wrote in message
> >>news:(E-Mail Removed)...
> >>> On Wed, 4 Nov 2009 10:13:58 -0000, "gerryR" <ger...@NOWAY.com> wrote:

>
> >>>>Perfect!

>
> >>>>Thanks foxidrive, what do the two "" do to the command?

>
> >>>>> start "" "c:\program files\internet explorer\iexplore.exe"
> >>>>> intranet.companyname.com/timesheets

>
> >>> In NT and higher the first quotes are used as a title for the window itself
> >>> so if you didn't have "" or something like "My Window" before the quoted
> >>> command line then it would have used "c:\program files\internet
> >>> explorer\iexplore.exe" as the title for the windows and not executed it.


Yes, but if there is a second quoted parameter following the
executable, the first string is taken to be a title and the second one
is taken as the executable - with obvious adverse results. It's just
seems advisable to put in the empty quotes as a habit to keep from
falling in the pit.
_____________________
Tom Lavedas
 
Reply With Quote
 
Guest
Posts: n/a
 
      4th Nov 2009
Yes it does. If you remove them then the exe becomes the window title.

Try the command without the initial quotes

eg

start "notepad"

--
..
--
"Tim Meddick" <(E-Mail Removed)> wrote in message
news:OeN8%(E-Mail Removed)...
> ...but if there are only one set of quotes - the start command will try to
> execute it - not assume it's a title.
>
> So the original command line quoted :
>
> start "" "c:\program files\internet explorer\iexplore.exe"
> intranet.companyname.com/timesheets
>
> ..really does not need the initial set of double-quotes, no?
>
> ==
>
> Cheers, Tim Meddick, Peckham, London. :-)
>
>
>
>
> <.> wrote in message news:(E-Mail Removed)...
>> The FIRST quotes the Start command finds will be used as the title for a
>> new command prompt window whether one is being created or not.
>>
>> --
>> .
>> --
>> "Tim Meddick" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> foxidrive,
>>> surly, the [start "title" "command"] only applies to
>>> naming the title of a CMD.EXE window, not the title of a Window's
>>> application.
>>> When the batch-script quoted executes the line you suggested :
>>>
>>> start "" "c:\program files\internet explorer\iexplore.exe"
>>> intranet.companyname.com/timesheets
>>>
>>> ...the window-title will be governed by the html [web] page that is the
>>> target of the iexplore.exe command (set with the html tagline: <TITLE>
>>> My Window </TITLE>).
>>>
>>> As I said, I thought that the only relevance adding the "title" in the
>>> "start" command is when calling up another command-prompt window...?
>>>
>>> ==
>>>
>>> Cheers, Tim Meddick, Peckham, London. :-)
>>>
>>>
>>>
>>>
>>> "foxidrive" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> On Wed, 4 Nov 2009 10:13:58 -0000, "gerryR" <(E-Mail Removed)> wrote:
>>>>
>>>>>Perfect!
>>>>>
>>>>>Thanks foxidrive, what do the two "" do to the command?
>>>>
>>>>>> start "" "c:\program files\internet explorer\iexplore.exe"
>>>>>> intranet.companyname.com/timesheets
>>>>
>>>> In NT and higher the first quotes are used as a title for the window
>>>> itself
>>>> so if you didn't have "" or something like "My Window" before the
>>>> quoted
>>>> command line then it would have used "c:\program files\internet
>>>> explorer\iexplore.exe" as the title for the windows and not executed
>>>> it.
>>>>
>>>

>>

>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Setup Auto-Logon as User Logon Script kdick@alliedtradegroup.com Windows XP Setup 0 2nd Jun 2006 11:26 PM
Setup Auto-Logon as User Logon Script kdick@alliedtradegroup.com Windows XP Setup 0 2nd Jun 2006 11:26 PM
Logon Script/Terminal Server Logon Script Don Jones Microsoft Windows 2000 Networking 5 6th Apr 2004 11:05 AM
Logon script running a Kixtart script doesn't map drives when logging on from XP AcKBaR[KAC] Microsoft Windows 2000 Networking 0 25th Feb 2004 05:35 PM
Detecting a thin client logon with a logon script Phil Teale Microsoft Windows 2000 Networking 0 5th Aug 2003 04:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 PM.