Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Terminal Services

Status
Not open for further replies.

JackOLantern

Technical User
May 9, 2003
4
GB
Hi. I've used aspect to control remote windowing progs such as "remotely possible" but I'm not able to send aspect commands to a Windows Terminal Services session. Currently I have to use some really nasty java based on the robot class. So my question is: Does anyone have the key to controlling a WTS session with aspect? Sample code much apreciated.

 
I know that you can use ProComm to run a perl script.



You also might want to try Windows Script Host where you can run .vbs files. In this example I actually create and run the .vbs file.

strfmt sTrans "set o = CreateObject(`"Scripting.FileSystemObject`")"
statmsg "%s" sTrans

strfmt sDirectoryt "o.CreateFolder `"S:\Client Services\TRANSUNION\%02d%02d%d`"" szMonth szDay szYear
strdelete sDirectoryt 50 2
statmsg "%s" sDirectoryt

strfmt sCR "%c" 13 ;string to hold carriage return
strfmt sLF "%c" 10 ;string to hold linefeed

fopen 1 "C:\WINNT\tu_create_directory.vbs" CREATE TEXT
fputs 1 sTrans
fwrite 1 sCR 1
fwrite 1 sLF 1
fputs 1 sDirectoryt
fclose 1
pause 1

run "C:\WINNT\tu_create_directory.vbs"
pause 3
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top