Solved

ScriptLogic help

Posted on 2007-03-26
7
402 Views
Last Modified: 2013-11-21
Ok folks, here we go:
We need a batch file that will allow a program to run, and when complete, exit from a terminal services session.  The problem arises when we introduce ScriptLogic and the batch file runs and logs off the user immiediatly.  We have tried various DOS enable/Disable, extensions etc. to no avail. Here is the batch file:

@echo off
c:
cd \progra~1\logician
start /wait c:\progra~1\logician\logician.exe mlsetupo.txt
logoff

Any assistance will be greatly appreciated.

Jim
0
Comment
Question by:jwhite273
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

by:b0fh
ID: 18794730
Have you tried placing the contents of the script (except "logoff") into another batch file & executing it?

example:

kicker.bat
@echo off
echo Starting logician & waiting for completion...
start /wait logician.bat
logoff


logician.bat
@echo off
echo Starting logician...
"c:\progra~1\logician\logician.exe" mlsetupo.txt

You may also be able to run start /wait cmd /c "c:\progra~1\logician\logician.exe" mlsetupo.txt
and achieve the same results, but I'm not exactly sure.  This question has sirbounty written all over it.  :-)
0
 

Author Comment

by:jwhite273
ID: 18794943
Howdy b0fh,
75% solved with your help so far.  Final problem is the batch file clearing itself and finishing the terminal session logoff.  Using your original ideas for a batch fie within a batch file has done well, we just need the final piece.

Thanks for the help thus far,
Jim
0
 
LVL 8

Expert Comment

by:b0fh
ID: 18794990
Where is it hanging?  Try adding a line w/ the single word EXIT to the end of each file.
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:jwhite273
ID: 18795062
Hi b0fh,
Sorry, that didn't help.  What we need is when the application terminates, that the terminal server sessions ends.  Unfortunately, we need to figure this out using batch files.  Scriptlogic seems to need this to do what we need it to do.

Jim
0
 
LVL 8

Accepted Solution

by:
b0fh earned 500 total points
ID: 18795282
What about:  logoff sessionname /server:yourTSmachine  ?
If not, pslogg


from logoff /?

LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V]

  sessionname         The name of the session.
  sessionid           The ID of the session.
  /SERVER:servername  Specifies the Terminal server containing the user
                      session to log off (default is current).
  /V                  Displays information about the actions performed.


0
 

Author Comment

by:jwhite273
ID: 18795783
Hi b0fh,
We're still working on it.  Your suggestions have really given us a direction to work from.  I'll let you know how we're making out.

Jim
0
 

Author Comment

by:jwhite273
ID: 18795911
Hi b0fh,
OK, we got it done.  We had to also add slagent.exe & slclient to the registry runonce as DWORDS.  However, your direction was certainly key in getting us to the right place.

Thanks,
Jim
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question