Re: Running a command line command using internal script variables
- From: "asdf" <asdf@xxxxxxxx>
- Date: Sun, 11 Mar 2007 03:38:58 -0500
Exercise with one line of script.
Use command lines.
There your input is legible [readable].
-------------------
You are already 'killing' yourself with
some
object syntax, trying to translate
strings back and forth
at the same time.
-------------------
Being it jscript, vbs or whatever
"igbagel" <igbagel@xxxxxxxxx> wrote in
message
news:1173456701.790379.93230@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I'm trying to use this script to
extract variables to use as input to
the windows logoff command.
**********************
if
ucase(username)=ucase(session.UserName)
then
WScript.Echo " Client Name
: " & Session.ClientName
WScript.Echo " App Name
: " & Session.AppName
theSessionID =
Session.SessionID
theServer =
Session.ServerName
End if
Next
'Below is the command line command I
would like this script to run.
'logoff theSessionId /server:
theServer
*************************
This is a .wsf script
I have not idea how to do this so any
and all help is appreciated.
Thank you!
- References:
- Prev by Date: Re: Exec() hangs if 4k written to StdErr, even with StdErr.ReadAll()
- Next by Date: Re: Running a command line command using internal script variables
- Previous by thread: Running a command line command using internal script variables
- Next by thread: Re: Running a command line command using internal script variables
- Index(es):
Relevant Pages
|