RE: terminal sessions takes more then a minute to logoff
- From: "Patrick Gilman" <Patrick Gilman@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 May 2005 13:05:21 -0700
Here is the vb script I created today to work around this problem.
I changed the line in my webpage to execute this script on the remote server
instead of calling iexplore.exe directly. The key to this working is the
"logoff" command at the end.
A problem I ran into was passing the pathname to the run command, it has
spaces in it which wouldn't work. I got around this by using the shortpath
instead of the long path of the executable program.
Hope this helps,
Patrick Gilman
Enterprise Systems Engineer
Lahey Clinic
patrick (-at-) nhmail.us
ie.vbs
-----------------------------
'This scripts verifies the existance of a program, gets the shortpath, and
then runs it.
'Replace with the path to your application
cProgram = "c:\program files\Internet Explorer\iexplore.exe"
'These are the command line arguments
cArgs = "http://www.microsoft.com/"
DIM objShell, fso, f, sPath, cLine, cProgram
set objShell = WScript.CreateObject("WScript.Shell")
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
'Check to see if the program exists where specified
If (fso.FileExists(cProgram)) Then
Set f = fso.GetFile(cProgram)
sPath = f.Shortpath
cLine = f.Shortpath & " " & cArgs
wscript.echo "This is the command which will run: " &cLine
objShell.Run(cLine), 3, True
Else
wscript.echo "Program not found: " & cProgram
End If
objShell.Run("logoff")
------------------------------------------------------------
"Sigitas Skublickas" wrote:
> Hello,
>
>
>
> I have Terminal server 2003 that executes certain application at a login
> time. When I close that app, it takes
>
> more then a minute for Terminal server to logoff from terminal session
> (Blue/blank screen stays for a while active).
>
> Does anybody have any thoughts on that?
>
> Thanks!
>
>
>
> Sigitas Skublickas
>
>
>
.
- References:
- terminal sessions takes more then a minute to logoff
- From: Sigitas Skublickas
- terminal sessions takes more then a minute to logoff
- Prev by Date: Re: problem accessing TS
- Next by Date: Re: Licenses
- Previous by thread: Re: terminal sessions takes more then a minute to logoff
- Next by thread: Local User profile problem with redirects
- Index(es):
Relevant Pages
|