Re: Running a command line command using internal script variables

Tech-Archive recommends: Speed Up your PC by fixing your registry



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!



Relevant Pages